You are here

protected function DrupalWebTestCase::assertNoFieldByName in SimpleTest 6.2

Same name and namespace in other branches
  1. 7.2 drupal_web_test_case.php \DrupalWebTestCase::assertNoFieldByName()
  2. 7 drupal_web_test_case.php \DrupalWebTestCase::assertNoFieldByName()

Asserts that a field does not exist with the given name and value.

Parameters

$name: Name of field to assert.

$value: Value of the field to assert.

$message: Message to display.

$group: The group this message belongs to.

Return value

TRUE on pass, FALSE on fail.

File

./drupal_web_test_case.php, line 2786

Class

DrupalWebTestCase
Test case for typical Drupal tests.

Code

protected function assertNoFieldByName($name, $value = '', $message = '') {
  return $this
    ->assertNoFieldByXPath($this
    ->constructFieldXpath('name', $name), $value, $message ? $message : t('Did not find field by name @name', array(
    '@name' => $name,
  )), t('Browser'));
}