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()
- 4.0.x modules/session_example/tests/src/Functional/SessionExampleTest.php \Drupal\Tests\session_example\Functional\SessionExampleTest::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',
]));
}