You are here

protected function PagerExampleTest::setUp in Examples for Developers 8

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

Overrides ExamplesBrowserTestBase::setUp

File

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

Class

PagerExampleTest
Tests paging.

Namespace

Drupal\Tests\pager_example\Functional

Code

protected function setUp() {
  parent::setUp();

  // Log in a user to prevent caching from affecting the results.
  $normalUser = $this
    ->drupalCreateUser();
  $this
    ->drupalLogin($normalUser);
}