function SessionExampleTest::setUp
Same name in other branches
- 3.x modules/session_example/tests/src/Functional/SessionExampleTest.php \Drupal\Tests\session_example\Functional\SessionExampleTest::setUp()
- 8.x-1.x session_example/tests/src/Functional/SessionExampleTest.php \Drupal\Tests\session_example\Functional\SessionExampleTest::setUp()
Overrides BrowserTestBase::setUp
File
-
modules/
session_example/ tests/ src/ Functional/ SessionExampleTest.php, line 31
Class
- SessionExampleTest
- Tests the basic functions of the Session Example module.
Namespace
Drupal\Tests\session_example\FunctionalCode
protected function setUp() : void {
parent::setUp();
// Place our blocks.
$this->drupalPlaceBlock('local_tasks_block', [
'region' => 'content',
]);
$this->drupalPlaceBlock('system_menu_block:tools', []);
// Login a user that can access content.
$this->drupalLogin($this->createUser([
'access content',
]));
}