You are here

protected function AssertLegacyTrait::assertNoFieldChecked in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php \Drupal\FunctionalTests\AssertLegacyTrait::assertNoFieldChecked()

Asserts that a checkbox field in the current page is not checked.

Parameters

string $id: ID of field to assert.

Deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use $this->assertSession()->checkboxNotChecked() instead.

28 calls to AssertLegacyTrait::assertNoFieldChecked()
BlockTest::testBlockToggleVisibility in core/modules/block/tests/src/Functional/BlockTest.php
Tests that visibility can be properly toggled.
BrowserTestBaseTest::testFieldAssertsForCheckbox in core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php
Tests legacy field asserts for checkbox field type.
CommentNonNodeTest::testCommentFunctionality in core/modules/comment/tests/src/Functional/CommentNonNodeTest.php
Tests anonymous comment functionality.
ContactPersonalTest::checkContactAccess in core/modules/contact/tests/src/Functional/ContactPersonalTest.php
Creates a user and then checks contact form access.
ContactPersonalTest::testPersonalContactAccess in core/modules/contact/tests/src/Functional/ContactPersonalTest.php
Tests access to the personal contact form.

... See full list

File

core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php, line 529

Class

AssertLegacyTrait
Provides convenience methods for assertions in browser tests.

Namespace

Drupal\FunctionalTests

Code

protected function assertNoFieldChecked($id) {
  $this
    ->assertSession()
    ->checkboxNotChecked($id);
}