1 pager.test | public PagerFunctionalWebTestCase::testThemePagerQuantityNotSet() |
Tests theme_pager() when an empty quantity is passed.
File
- core/
modules/ simpletest/ tests/ pager.test, line 57 - Tests for pager functionality.
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);
}