function ViewsPagerTest::testViewTotalRowsWithoutPager

File

tests/views_pager.test, line 185

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.");
}