public function DurationFieldBrowserTestBase::assertCheckboxChecked in Duration Field 8
Same name and namespace in other branches
- 8.2 tests/src/Functional/DurationFieldBrowserTestBase.php \Drupal\Tests\duration_field\Functional\DurationFieldBrowserTestBase::assertCheckboxChecked()
- 3.0.x tests/src/Functional/DurationFieldBrowserTestBase.php \Drupal\Tests\duration_field\Functional\DurationFieldBrowserTestBase::assertCheckboxChecked()
Asserts that a checkbox was checked.
1 call to DurationFieldBrowserTestBase::assertCheckboxChecked()
- DurationFieldAccessTest::createDefaultSetup in tests/
src/ Functional/ DurationFieldFunctionalTest.php - Sets up a date.
File
- tests/
src/ Functional/ DurationFieldBrowserTestBase.php, line 83
Class
- DurationFieldBrowserTestBase
- Base class that provides some helper functions for functional tests.
Namespace
Drupal\Tests\duration_field\FunctionalCode
public function assertCheckboxChecked($htmlID) {
if (preg_match('/^#/', $htmlID)) {
$htmlID = substr($htmlID, 1);
}
$this
->assertSession()
->checkboxChecked($htmlID);
}