You are here

public function RestrictIpServiceTest::pathInAllowedPathsDataProvider in Restrict IP 8

Same name and namespace in other branches
  1. 8.2 tests/src/Unit/Service/RestrictIpServiceTest.php \Drupal\Tests\restrict_ip\Unit\Service\RestrictIpServiceTest::pathInAllowedPathsDataProvider()
  2. 3.x tests/src/Unit/Service/RestrictIpServiceTest.php \Drupal\Tests\restrict_ip\Unit\Service\RestrictIpServiceTest::pathInAllowedPathsDataProvider()

* Data provider for testPathInAllowedPaths()

File

tests/src/Unit/Service/RestrictIpServiceTest.php, line 123

Class

RestrictIpServiceTest
@coversDefaultClass \Drupal\restrict_ip\Service\RestrictIpService @group restrict_ip

Namespace

Drupal\Tests\restrict_ip\Unit\Service

Code

public function pathInAllowedPathsDataProvider() {
  return [
    [
      '/user',
      FALSE,
    ],
    [
      '/user/login',
      FALSE,
    ],
    [
      '/user/password',
      FALSE,
    ],
    [
      '/user/logout',
      FALSE,
    ],
    [
      '/user/reset/something',
      FALSE,
    ],
    [
      '/invalid/path',
      NULL,
    ],
  ];
}