You are here

protected function RangeFieldWidgetBaseWebTestCase::assertNoFieldPrefix in Range 7

Asserts that a field prefix with a given text does not exist.

Parameters

string $prefix: Prefix text to search for.

string $message: Message to display.

Return value

bool TRUE on pass, FALSE on fail.

1 call to RangeFieldWidgetBaseWebTestCase::assertNoFieldPrefix()
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 285
Contains range base test classes.

Class

RangeFieldWidgetBaseWebTestCase
Base class for the range module's tests.

Code

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