1 pager.test | protected PagerFunctionalWebTestCase::assertClass(SimpleXMLElement $element, $class, $message = NULL) |
Asserts that an element has a given class.
Parameters
SimpleXMLElement $element: The element to test.
string $class: The class to assert.
string $message: (optional) A verbose message to output.
File
- core/
modules/ simpletest/ tests/ pager.test, line 147 - Tests for pager functionality.
Class
- PagerFunctionalWebTestCase
- Tests pager functionality.
Code
protected function assertClass(SimpleXMLElement $element, $class, $message = NULL) {
if (!isset($message)) {
$message = "Class .$class found.";
}
$this->assertTrue(strpos($element['class'], $class) !== FALSE, $message);
}