You are here

protected function MiniPagerTest::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/views/tests/src/Functional/Plugin/MiniPagerTest.php \Drupal\Tests\views\Functional\Plugin\MiniPagerTest::setUp()

Overrides ViewTestBase::setUp

File

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

Class

MiniPagerTest
Tests the mini pager plugin.

Namespace

Drupal\Tests\views\Functional\Plugin

Code

protected function setUp($import_test_views = TRUE) : void {
  parent::setUp($import_test_views);
  $this
    ->drupalCreateContentType([
    'type' => 'page',
  ]);

  // Create a bunch of test nodes.
  for ($i = 0; $i < 20; $i++) {
    $this->nodes[] = $this
      ->drupalCreateNode();
  }
}