You are here

public function RestrictIpBrowserTestBase::checkCheckbox in Restrict IP 3.x

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/RestrictIpBrowserTestBase.php \Drupal\Tests\restrict_ip\Functional\RestrictIpBrowserTestBase::checkCheckbox()
  2. 8 tests/src/Functional/RestrictIpBrowserTestBase.php \Drupal\Tests\restrict_ip\Functional\RestrictIpBrowserTestBase::checkCheckbox()
8 calls to RestrictIpBrowserTestBase::checkCheckbox()
RestrictIpAccessTest::testAccessBypassByRole in tests/src/Functional/RestrictIpAccessTest.php
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::testModuleEnabled in tests/src/Functional/RestrictIpAccessTest.php
* Test that a user is blocked when the module is enabled

... See full list

File

tests/src/Functional/RestrictIpBrowserTestBase.php, line 62

Class

RestrictIpBrowserTestBase
Provides some helper functions for functional tests.

Namespace

Drupal\Tests\restrict_ip\Functional

Code

public function checkCheckbox($htmlID) {
  if (preg_match('/^#/', $htmlID)) {
    $htmlID = substr($htmlID, 1);
  }
  $this
    ->getSession()
    ->getPage()
    ->checkField($htmlID);
}