protected function PagerTest::setUp in Drupal 8
Same name and namespace in other branches
- 9 core/modules/system/tests/src/Functional/Pager/PagerTest.php \Drupal\Tests\system\Functional\Pager\PagerTest::setUp()
- 10 core/modules/system/tests/src/Functional/Pager/PagerTest.php \Drupal\Tests\system\Functional\Pager\PagerTest::setUp()
Overrides BrowserTestBase::setUp
File
- core/
modules/ system/ tests/ src/ Functional/ Pager/ PagerTest.php, line 39
Class
- PagerTest
- Tests pager functionality.
Namespace
Drupal\Tests\system\Functional\PagerCode
protected function setUp() {
parent::setUp();
// Insert 300 log messages.
$logger = $this->container
->get('logger.factory')
->get('pager_test');
for ($i = 0; $i < 300; $i++) {
$logger
->debug($this
->randomString());
}
$this->adminUser = $this
->drupalCreateUser([
'access site reports',
'administer image styles',
]);
$this
->drupalLogin($this->adminUser);
}