protected function ApiDocsAdminTest::setUp in Apigee API Catalog 8
Same name and namespace in other branches
- 8.2 tests/src/Functional/ApiDocsAdminTest.php \Drupal\Tests\apigee_api_catalog\Functional\ApiDocsAdminTest::setUp()
Overrides BrowserTestBase::setUp
File
- tests/
src/ Functional/ ApiDocsAdminTest.php, line 65
Class
- ApiDocsAdminTest
- Simple test to ensure that main page loads with module enabled.
Namespace
Drupal\Tests\apigee_api_catalog\FunctionalCode
protected function setUp() {
parent::setUp();
// Add the system menu blocks to appropriate regions.
$this
->setupMenus();
$this->adminUser = $this
->drupalCreateUser([
'add apidoc entities',
'delete apidoc entities',
'edit apidoc entities',
'view published apidoc entities',
'view unpublished apidoc entities',
'administer apigee api catalog',
'administer apidoc display',
'administer apidoc fields',
'administer apidoc form display',
'access administration pages',
// Access content is needed to access the referenced files.
'access content',
]);
$this
->drupalLogin($this->adminUser);
}