You are here

public function ViewsPagerTest::testViewTotalRowsWithoutPager in Views (for Drupal 7) 7.3

File

tests/views_pager.test, line 185
Definition of ViewsPagerTest.

Class

ViewsPagerTest
Tests the pluggable pager system.

Code

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