protected function DrupalWebTestCase::assertField

Asserts that a field exists 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.

16 calls to DrupalWebTestCase::assertField()
CommentInterfaceTest::testCommentInterface in drupal-7.x/modules/comment/comment.test
Test comment interface.
CommentInterfaceTest::testCommentInterface in drupal-7.x/modules/comment/comment.test
Test comment interface.
DrupalWebTestCase::drupalLogout in drupal-7.x/modules/simpletest/drupal_web_test_case.php
DrupalWebTestCase::drupalLogout in drupal-7.x/modules/simpletest/drupal_web_test_case.php
ForumTestCase::doAdminTests in drupal-7.x/modules/forum/forum.test
Runs admin tests on the admin user.

... See full list

Archivo

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

Class

DrupalWebTestCase
Test case for typical Drupal tests.

Código

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