You are here

public function RestrictIpBrowserTestBase::assertStatusCodeEquals in Restrict IP 8.2

Same name and namespace in other branches
  1. 8 tests/src/Functional/RestrictIpBrowserTestBase.php \Drupal\Tests\restrict_ip\Functional\RestrictIpBrowserTestBase::assertStatusCodeEquals()
  2. 3.x tests/src/Functional/RestrictIpBrowserTestBase.php \Drupal\Tests\restrict_ip\Functional\RestrictIpBrowserTestBase::assertStatusCodeEquals()
8 calls to RestrictIpBrowserTestBase::assertStatusCodeEquals()
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 12

Class

RestrictIpBrowserTestBase
Provides some helper functions for functional tests.

Namespace

Drupal\Tests\restrict_ip\Functional

Code

public function assertStatusCodeEquals($statusCode) {
  $this
    ->assertSession()
    ->statusCodeEquals($statusCode);
}