function SessionExampleTest::setUp

Same name and namespace in other branches
  1. 4.0.x modules/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\Functional

Code

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',
    ]));
}