public function RestrictIpBrowserTestBase::fillTextValue in Restrict IP 3.x
Same name and namespace in other branches
- 8.2 tests/src/Functional/RestrictIpBrowserTestBase.php \Drupal\Tests\restrict_ip\Functional\RestrictIpBrowserTestBase::fillTextValue()
- 8 tests/src/Functional/RestrictIpBrowserTestBase.php \Drupal\Tests\restrict_ip\Functional\RestrictIpBrowserTestBase::fillTextValue()
5 calls to RestrictIpBrowserTestBase::fillTextValue()
- RestrictIpAccessTest::testBlacklistedPaths in tests/
src/ Functional/ RestrictIpAccessTest.php - RestrictIpAccessTest::testEmailAddressDisplays in tests/
src/ Functional/ RestrictIpAccessTest.php - RestrictIpAccessTest::testIpWhitelist in tests/
src/ Functional/ RestrictIpAccessTest.php - * Test that a user is not blocked if their IP address is whitelisted when the module is enabled
- RestrictIpAccessTest::testWhitelistedPaths in tests/
src/ Functional/ RestrictIpAccessTest.php - RestrictIpAdminUiTest::testRestrictIpAdminPage in tests/
src/ Functional/ RestrictIpAdminUiTest.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/ RestrictIpBrowserTestBase.php, line 82
Class
- RestrictIpBrowserTestBase
- Provides some helper functions for functional tests.
Namespace
Drupal\Tests\restrict_ip\FunctionalCode
public function fillTextValue($htmlID, $value) {
if (preg_match('/^#/', $htmlID)) {
$htmlID = substr($htmlID, 1);
}
$this
->getSession()
->getPage()
->fillField($htmlID, $value);
}