protected function SessionExampleTest::setUp in Examples for Developers 8
Same name and namespace in other branches
- 3.x modules/session_example/tests/src/Functional/SessionExampleTest.php \Drupal\Tests\session_example\Functional\SessionExampleTest::setUp()
Overrides BrowserTestBase::setUp
File
- 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() {
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',
]));
}