1 pager.test protected PagerFunctionalWebTestCase::assertNoClass(SimpleXMLElement $element, $class, $message = NULL)

Asserts that an element does not have 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 159
Tests for pager functionality.

Class

PagerFunctionalWebTestCase
Tests pager functionality.

Code

protected function assertNoClass(SimpleXMLElement $element, $class, $message = NULL) {
  if (!isset($message)) {
    $message = "Class .$class not found.";
  }
  $this->assertTrue(strpos((string) $element['class'], $class) === FALSE, $message);
}