protected function DrupalWebTestCase::assertNoField in Drupal 7
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 modules/
comment/ comment.test - Test comment interface.
- FieldFormTestCase::testFieldFormJSAddMore in modules/
field/ tests/ field.test - FieldFormTestCase::testFieldFormMultivalueWithRequiredRadio in modules/
field/ tests/ field.test - Tests widget handling of multiple required radios.
- FieldFormTestCase::testFieldFormSingle in modules/
field/ tests/ field.test - FieldFormTestCase::testFieldFormUnlimited in modules/
field/ tests/ field.test
File
- modules/
simpletest/ drupal_web_test_case.php, line 3813
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);
}