protected function DrupalWebTestCase::assertNoField

Asserts that a field does not exist with the given name or ID.

Parameters

$field: Name or ID of field to assert.

$message: (optional) Message to display.

$group: The group this message belongs to.

Return value

TRUE on pass, FALSE on fail.

7 calls to DrupalWebTestCase::assertNoField()
CommentInterfaceTest::testCommentInterface in drupal/modules/comment/comment.test
Test comment interface.
FieldFormTestCase::testFieldFormJSAddMore in drupal/modules/field/tests/field.test
FieldFormTestCase::testFieldFormMultivalueWithRequiredRadio in drupal/modules/field/tests/field.test
Tests widget handling of multiple required radios.
FieldFormTestCase::testFieldFormSingle in drupal/modules/field/tests/field.test
FieldFormTestCase::testFieldFormUnlimited in drupal/modules/field/tests/field.test

... See full list

File

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

Class

DrupalWebTestCase
Test case for typical Drupal tests.

Code

protected function assertNoField($field, $message = '', $group = 'Other') {
  return $this
    ->assertNoFieldByXPath($this
    ->constructFieldXpath('name', $field) . '|' . $this
    ->constructFieldXpath('id', $field), NULL, $message, $group);
}