function MiniPagerTest::setUp

Same name and namespace in other branches
  1. 11.x core/modules/views/tests/src/Functional/Plugin/MiniPagerTest.php \Drupal\Tests\views\Functional\Plugin\MiniPagerTest::setUp()
  2. 10 core/modules/views/tests/src/Functional/Plugin/MiniPagerTest.php \Drupal\Tests\views\Functional\Plugin\MiniPagerTest::setUp()
  3. 8.9.x core/modules/views/tests/src/Functional/Plugin/MiniPagerTest.php \Drupal\Tests\views\Functional\Plugin\MiniPagerTest::setUp()

File

core/modules/views/tests/src/Functional/Plugin/MiniPagerTest.php, line 45

Class

MiniPagerTest
Tests the mini pager plugin.

Namespace

Drupal\Tests\views\Functional\Plugin

Code

protected function setUp($import_test_views = TRUE, $modules = [
  'views_test_config',
]) : void {
  parent::setUp($import_test_views, $modules);
  $this->drupalCreateContentType([
    'type' => 'page',
  ]);
  // Create a bunch of test nodes.
  for ($i = 0; $i < 20; $i++) {
    $this->nodes[] = $this->drupalCreateNode();
  }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.