You are here

protected function WebformAssertLegacyTrait::assertNoFieldChecked in Webform 6.x

Same name and namespace in other branches
  1. 8.5 tests/src/Traits/WebformAssertLegacyTrait.php \Drupal\Tests\webform\Traits\WebformAssertLegacyTrait::assertNoFieldChecked()

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

Parameters

string $id: ID of field to assert.

5 calls to WebformAssertLegacyTrait::assertNoFieldChecked()
WebformOptionsLimitTest::testOptionsLimit in modules/webform_options_limit/tests/src/Functional/WebformOptionsLimitTest.php
Test options limit.
WebformSettingsPrepopulateTest::testPrepopulate in tests/src/Functional/Settings/WebformSettingsPrepopulateTest.php
Tests webform setting including confirmation.
WebformSettingsStatusTest::testStatus in tests/src/Functional/Settings/WebformSettingsStatusTest.php
Tests default status.
WebformStatesWizardTest::testFormStatesValidatorWizard in tests/src/Functional/States/WebformStatesWizardTest.php
Tests webform submission conditions (#states) validator wizard cross-page conditions.
WebformUiElementTest::testElements in modules/webform_ui/tests/src/Functional/WebformUiElementTest.php
Tests element.

File

tests/src/Traits/WebformAssertLegacyTrait.php, line 483

Class

WebformAssertLegacyTrait
Provides convenience methods for assertions in browser tests.

Namespace

Drupal\Tests\webform\Traits

Code

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