public function ForcePasswordChangeBrowserTestBase::assertCheckboxExists in Force Password Change 8
Same name and namespace in other branches
- 2.0.x tests/src/Functional/ForcePasswordChangeBrowserTestBase.php \Drupal\Tests\force_password_change\Functional\ForcePasswordChangeBrowserTestBase::assertCheckboxExists()
3 calls to ForcePasswordChangeBrowserTestBase::assertCheckboxExists()
- ForcePasswordChangeAdminUiTest::testForcePasswordChangeAdminPage in tests/
src/ Functional/ ForcePasswordChangeAdminUiTest.php - * Test that the admin UI page is properly linked to, that all the required elements * exist, and that the form is working properly
- ForcePasswordChangeFunctionalityTest::testImmedidatePasswordForceForAuthenticated in tests/
src/ Functional/ ForcePasswordChangeFunctionalityTest.php - * Tests that users in the athenticated role that has it's passwords forced are forced * to change their password immediately when the settings are set for immediate * force.
- ForcePasswordChangeFunctionalityTest::testImmedidatePasswordForceForSecondaryGroup in tests/
src/ Functional/ ForcePasswordChangeFunctionalityTest.php - * Tests that users in a given role that has it's passwords forced are forced * to change their password immediately when the settings are set for immediate * force.
File
- tests/
src/ Functional/ ForcePasswordChangeBrowserTestBase.php, line 125
Class
- ForcePasswordChangeBrowserTestBase
- Provides some helper functions for functional tests.
Namespace
Drupal\Tests\force_password_change\FunctionalCode
public function assertCheckboxExists($htmlID) {
if (!preg_match('/^#/', $htmlID)) {
$htmlID = '#' . $htmlID;
}
$this
->assertElementExists($htmlID);
$this
->assertElementAttributeExists($htmlID, 'type');
$this
->assertElementAttributeContains($htmlID, 'type', 'checkbox');
}