You are here

private function RangeFieldWidgetBaseWebTestCase::assertNoFieldPropertyByText in Range 7

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

Parameters

string $xpath: The xpath string to use in the search.

string $text: Value of the field property.

string $message: Message to display.

Return value

bool TRUE on pass, FALSE on fail.

3 calls to RangeFieldWidgetBaseWebTestCase::assertNoFieldPropertyByText()
RangeFieldWidgetBaseWebTestCase::assertNoFieldLabel in tests/range.base.test
Asserts that a field label with a given text does not exist.
RangeFieldWidgetBaseWebTestCase::assertNoFieldPrefix in tests/range.base.test
Asserts that a field prefix with a given text does not exist.
RangeFieldWidgetBaseWebTestCase::assertNoFieldSuffix in tests/range.base.test
Asserts that a field suffix with a given text does not exist.

File

tests/range.base.test, line 350
Contains range base test classes.

Class

RangeFieldWidgetBaseWebTestCase
Base class for the range module's tests.

Code

private function assertNoFieldPropertyByText($xpath, $text, $message) {
  $result = $this
    ->xpath($xpath . '[normalize-space(text())=:text]', array(
    ':text' => $text,
  ));
  return $this
    ->assertFalse($result, $message);
}