You are here

protected function ApiDocsAdminTest::setUp in Apigee API Catalog 8.2

Same name and namespace in other branches
  1. 8 tests/src/Functional/ApiDocsAdminTest.php \Drupal\Tests\apigee_api_catalog\Functional\ApiDocsAdminTest::setUp()

Overrides BrowserTestBase::setUp

File

tests/src/Functional/ApiDocsAdminTest.php, line 71

Class

ApiDocsAdminTest
Simple test to ensure that main page loads with module enabled.

Namespace

Drupal\Tests\apigee_api_catalog\Functional

Code

protected function setUp() {
  parent::setUp();

  // Add the system menu blocks to appropriate regions.
  $this
    ->setupMenus();
  $this->adminUser = $this
    ->drupalCreateUser([
    'access content',
    'access content overview',
    'create apidoc content',
    'edit any apidoc content',
    'delete any apidoc content',
  ]);
  $this
    ->drupalLogin($this->adminUser);
}