Revision 27e02aed
Added by Assos Assos over 4 years ago
drupal7/modules/simpletest/tests/pager.test | ||
---|---|---|
55 | 55 |
$this->assertPagerItems($current_page); |
56 | 56 |
} |
57 | 57 |
|
58 |
/** |
|
59 |
* Tests theme_pager() when an empty quantity is passed. |
|
60 |
*/ |
|
61 |
public function testThemePagerQuantityNotSet() { |
|
62 |
$variables = array( |
|
63 |
'element' => 0, |
|
64 |
'parameters' => array(), |
|
65 |
'quantity' => '', |
|
66 |
'tags' => '', |
|
67 |
); |
|
68 |
pager_default_initialize(100, 10); |
|
69 |
$rendered_output = theme_pager($variables); |
|
70 |
$this->assertNotIdentical(stripos($rendered_output, 'next'), FALSE); |
|
71 |
$this->assertNotIdentical(stripos($rendered_output, 'last'), FALSE); |
|
72 |
} |
|
73 |
|
|
58 | 74 |
/** |
59 | 75 |
* Asserts pager items and links. |
60 | 76 |
* |
... | ... | |
156 | 172 |
$this->assertTrue(strpos($element['class'], $class) === FALSE, $message); |
157 | 173 |
} |
158 | 174 |
} |
159 |
|
Also available in: Unified diff
-a