protected function WebTestBase::assertNoFieldById

Asserts that a field does not exist with the given id and value.

Parameters

$id: Id of field to assert.

$value: Value of the field to assert.

$message: (optional) A message to display with the assertion. Do not translate messages: use format_string() to embed variables in the message text, not t(). If left blank, a default message will be displayed.

$group: (optional) The group this message is in, which is displayed in a column in test output. Use 'Debug' to indicate this is debugging output. Do not translate this string. Defaults to 'Browser'; most tests do not override this default.

Return value

TRUE on pass, FALSE on fail.

5 calls to WebTestBase::assertNoFieldById()
DisplayTest::testDisableDisplay in drupal/core/modules/views/lib/Drupal/views/Tests/UI/DisplayTest.php
Tests disabling of a display.
DisplayTest::testRemoveDisplay in drupal/core/modules/views/lib/Drupal/views/Tests/UI/DisplayTest.php
Tests removing a display.
ExposedFormTest::testExposedAdminUi in drupal/core/modules/views/lib/Drupal/views/Tests/Plugin/ExposedFormTest.php
Tests the admin interface of exposed filter and sort items.
ManageFieldsTest::testDefaultValue in drupal/core/modules/field_ui/lib/Drupal/field_ui/Tests/ManageFieldsTest.php
Tests that default value is correctly validated and saved.
SettingsTest::testEditUI in drupal/core/modules/views/lib/Drupal/views/Tests/UI/SettingsTest.php
Tests the settings for the edit ui.

File

drupal/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php, line 2688
Definition of Drupal\simpletest\WebTestBase.

Class

WebTestBase
Test case for typical Drupal tests.

Namespace

Drupal\simpletest

Code

protected function assertNoFieldById($id, $value = '', $message = '', $group = 'Browser') {
  return $this
    ->assertNoFieldByXPath($this
    ->constructFieldXpath('id', $id), $value, $message ? $message : t('Did not find field by id @id', array(
    '@id' => $id,
  )), $group);
}