protected function DrupalWebTestCase::assertNoFieldById

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

Parameters

$id: ID of field to assert.

$value: (optional) Value for the field, to assert that the field's value on the page doesn't match it. You may pass in NULL to skip checking the value, while still checking that the field doesn't exist. However, the default value ('') asserts that the field value is not an empty string.

$message: (optional) Message to display.

$group: The group this message belongs to.

Return value

TRUE on pass, FALSE on fail.

File

drupal/modules/simpletest/drupal_web_test_case.php, line 3494

Class

DrupalWebTestCase
Test case for typical Drupal tests.

Code

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