1 views_pager.test | public ViewsPagerTest::testViewTotalRowsWithoutPager() |
File
- core/
modules/ views/ tests/ views_pager.test, line 166 - 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.");
}