protected function PagerTest::assertNoClass in Drupal 8
Same name and namespace in other branches
- 9 core/modules/system/tests/src/Functional/Pager/PagerTest.php \Drupal\Tests\system\Functional\Pager\PagerTest::assertNoClass()
Asserts that an element does not have a given class.
Parameters
\Behat\Mink\Element\NodeElement $element: The element to test.
string $class: The class to assert.
string $message: (optional) A verbose message to output.
1 call to PagerTest::assertNoClass()
- PagerTest::assertPagerItems in core/
modules/ system/ tests/ src/ Functional/ Pager/ PagerTest.php - Asserts pager items and links.
File
- core/
modules/ system/ tests/ src/ Functional/ Pager/ PagerTest.php, line 342
Class
- PagerTest
- Tests pager functionality.
Namespace
Drupal\Tests\system\Functional\PagerCode
protected function assertNoClass(NodeElement $element, $class, $message = NULL) {
if (!isset($message)) {
$message = "Class .{$class} not found.";
}
$this
->assertTrue($element
->hasClass($class) === FALSE, $message);
}