You are here

public function PagerTest::createNodes in Views (for Drupal 7) 8.3

1 call to PagerTest::createNodes()
PagerTest::testViewTotalRowsWithoutPager in lib/Drupal/views/Tests/Plugin/PagerTest.php

File

lib/Drupal/views/Tests/Plugin/PagerTest.php, line 152
Definition of Drupal\views\Tests\Plugin\PagerTest.

Class

PagerTest
Tests the pluggable pager system.

Namespace

Drupal\views\Tests\Plugin

Code

public function createNodes($count) {
  if ($count >= 0) {
    for ($i = 0; $i < $count; $i++) {
      $this
        ->drupalCreateNode();
    }
  }
}