function PagerExampleTest::setUp

Same name in other branches
  1. 4.0.x modules/pager_example/tests/src/Functional/PagerExampleTest.php \Drupal\Tests\pager_example\Functional\PagerExampleTest::setUp()

Overrides ExamplesBrowserTestBase::setUp

File

modules/pager_example/tests/src/Functional/PagerExampleTest.php, line 28

Class

PagerExampleTest
Tests paging.

Namespace

Drupal\Tests\pager_example\Functional

Code

protected function setUp() : void {
    parent::setUp();
    // Log in a user to prevent caching from affecting the results.
    $normalUser = $this->drupalCreateUser();
    $this->drupalLogin($normalUser);
}