function HooksExampleTest::setUp
Same name in other branches
- 3.x modules/hooks_example/tests/src/Functional/HooksExampleTest.php \Drupal\Tests\hooks_example\Functional\HooksExampleTest::setUp()
Overrides BrowserTestBase::setUp
File
-
modules/
hooks_example/ tests/ src/ Functional/ HooksExampleTest.php, line 35
Class
- HooksExampleTest
- Test the functionality of the Hooks Example module.
Namespace
Drupal\Tests\hooks_example\FunctionalCode
protected function setUp() : void {
parent::setUp();
$this->createContentType([
'type' => 'page',
]);
$account = $this->drupalCreateUser([
'access administration pages',
]);
$this->drupalLogin($account);
}