public function ForcePasswordChangeBrowserTestBase::assertTextValue 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::assertTextValue()
1 call to ForcePasswordChangeBrowserTestBase::assertTextValue()
- 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
File
- tests/
src/ Functional/ ForcePasswordChangeBrowserTestBase.php, line 167
Class
- ForcePasswordChangeBrowserTestBase
- Provides some helper functions for functional tests.
Namespace
Drupal\Tests\force_password_change\FunctionalCode
public function assertTextValue($htmlID, $value) {
if (preg_match('/^#/', $htmlID)) {
$htmlID = substr($htmlID, 1);
}
$this
->assertSession()
->fieldValueEquals($htmlID, $value);
}