function PagerFunctionalWebTestCase::testThemePagerQuantityNotSet
Tests theme_pager() when an empty quantity is passed.
File
-
modules/
simpletest/ tests/ pager.test, line 62
Class
- PagerFunctionalWebTestCase
- Tests pager functionality.
Code
public function testThemePagerQuantityNotSet() {
$variables = array(
'element' => 0,
'parameters' => array(),
'quantity' => '',
'tags' => '',
);
pager_default_initialize(100, 10);
$rendered_output = theme_pager($variables);
$this->assertNotIdentical(stripos($rendered_output, 'next'), FALSE);
$this->assertNotIdentical(stripos($rendered_output, 'last'), FALSE);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.