protected function DrupalWebTestCase::assertNoField in SimpleTest 7.2
Same name and namespace in other branches
- 6.2 drupal_web_test_case.php \DrupalWebTestCase::assertNoField()
- 7 drupal_web_test_case.php \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: Message to display.
$group: The group this message belongs to.
Return value
TRUE on pass, FALSE on fail.
File
- ./
drupal_web_test_case.php, line 3252 - Provides DrupalTestCase, DrupalUnitTestCase, and DrupalWebTestCase classes.
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);
}