You are here

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

File

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

Class

PagerTest
Tests the pluggable pager system.

Namespace

Drupal\views\Tests\Plugin

Code

public function testViewTotalRowsWithoutPager() {
  $this
    ->createNodes(23);
  $this->view->get_total_rows = TRUE;
  $this
    ->executeView($this->view);
  $this
    ->assertEqual($this->view->total_rows, 23, "'total_rows' is calculated when pager type is 'none' and 'get_total_rows' is TRUE.");
}