You are here

protected function RangeFieldWidgetBaseWebTestCase::assertFieldSuffix in Range 7

Asserts that a field suffix with a given text exists.

Parameters

string $suffix: Suffix text to search for.

string $message: Message to display.

Return value

bool TRUE on pass, FALSE on fail.

2 calls to RangeFieldWidgetBaseWebTestCase::assertFieldSuffix()
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 300
Contains range base test classes.

Class

RangeFieldWidgetBaseWebTestCase
Base class for the range module's tests.

Code

protected function assertFieldSuffix($suffix, $message) {
  return $this
    ->assertFieldPropertyByText("//span[@class='field-suffix']", $suffix, $message);
}