protected function RangeFieldWidgetBaseWebTestCase::assertFieldLabel in Range 7
Asserts that a field label with a given text exists.
Parameters
string $label: Label text to search for.
string $message: Message to display.
Return value
bool TRUE on pass, FALSE on fail.
2 calls to RangeFieldWidgetBaseWebTestCase::assertFieldLabel()
- RangeFieldWidgetTestCase::_testRangeFieldWidget in tests/
range.field_widget.test - Helper method. Tests range field widget for a given range field type.
- RangeInternationalizationWebTestCase::testRangeFieldWidgetRespectsInterfaceLanguage in tests/
range.i18n.test - Verifies that range module field widget respects interface language.
File
- tests/
range.base.test, line 240 - Contains range base test classes.
Class
- RangeFieldWidgetBaseWebTestCase
- Base class for the range module's tests.
Code
protected function assertFieldLabel($label, $message) {
return $this
->assertFieldPropertyByText("//label[@for]", $label, $message);
}