protected function DrupalWebTestCase::assertNoFieldById

7.x drupal_web_test_case.php protected DrupalWebTestCase::assertNoFieldById($id, $value = '', $message = '')

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

Parameters

$id: Id 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/modules/simpletest/drupal_web_test_case.php, line 3374

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'));
}