updated core to 7.80
This commit is contained in:
@@ -55,6 +55,22 @@ class PagerFunctionalWebTestCase extends DrupalWebTestCase {
|
||||
$this->assertPagerItems($current_page);
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests theme_pager() when an empty quantity is passed.
|
||||
*/
|
||||
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);
|
||||
}
|
||||
|
||||
/**
|
||||
* Asserts pager items and links.
|
||||
*
|
||||
@@ -156,4 +172,3 @@ class PagerFunctionalWebTestCase extends DrupalWebTestCase {
|
||||
$this->assertTrue(strpos($element['class'], $class) === FALSE, $message);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user