protected function RangeFieldWidgetBaseWebTestCase::assertNoFieldLabel in Range 7
Asserts that a field label with a given text does not exist.
Parameters
string $label: Label text to search for.
string $message: Message to display.
Return value
bool TRUE on pass, FALSE on fail.
1 call to RangeFieldWidgetBaseWebTestCase::assertNoFieldLabel()
- RangeFieldWidgetTestCase::_testRangeFieldWidget in tests/
range.field_widget.test - Helper method. Tests range field widget for a given range field type.
File
- tests/
range.base.test, line 255 - Contains range base test classes.
Class
- RangeFieldWidgetBaseWebTestCase
- Base class for the range module's tests.
Code
protected function assertNoFieldLabel($label, $message) {
return $this
->assertNoFieldPropertyByText("//label[@for]", $label, $message);
}