protected function DrupalWebTestCase::assertNoField

7.x drupal_web_test_case.php protected DrupalWebTestCase::assertNoField($field, $message = '', $group = 'Other')

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

Parameters

$field: Name or id of field to assert.

$message: 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-7.x/modules/comment/comment.test
Test comment interface.
FieldFormTestCase::testFieldFormJSAddMore in drupal-7.x/modules/field/tests/field.test
FieldFormTestCase::testFieldFormMultivalueWithRequiredRadio in drupal-7.x/modules/field/tests/field.test
Tests widget handling of multiple required radios.
FieldFormTestCase::testFieldFormSingle in drupal-7.x/modules/field/tests/field.test
FieldFormTestCase::testFieldFormUnlimited in drupal-7.x/modules/field/tests/field.test

... See full list

File

drupal-7.x/modules/simpletest/drupal_web_test_case.php, line 3492

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