protected function RangeFieldWidgetBaseWebTestCase::assertFieldPrefix in Range 7
Asserts that a field prefix with a given text exists.
Parameters
string $prefix: Prefix text to search for.
string $message: Message to display.
Return value
bool TRUE on pass, FALSE on fail.
2 calls to RangeFieldWidgetBaseWebTestCase::assertFieldPrefix()
- 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 270 - Contains range base test classes.
Class
- RangeFieldWidgetBaseWebTestCase
- Base class for the range module's tests.
Code
protected function assertFieldPrefix($prefix, $message) {
return $this
->assertFieldPropertyByText("//span[@class='field-prefix']", $prefix, $message);
}