public function RestrictIpServiceTest::blacklistDataProvider in Restrict IP 8
Same name and namespace in other branches
- 8.2 tests/src/Unit/Service/RestrictIpServiceTest.php \Drupal\Tests\restrict_ip\Unit\Service\RestrictIpServiceTest::blacklistDataProvider()
- 3.x tests/src/Unit/Service/RestrictIpServiceTest.php \Drupal\Tests\restrict_ip\Unit\Service\RestrictIpServiceTest::blacklistDataProvider()
* Data provider for testBlacklist()
File
- tests/
src/ Unit/ Service/ RestrictIpServiceTest.php, line 216
Class
- RestrictIpServiceTest
- @coversDefaultClass \Drupal\restrict_ip\Service\RestrictIpService @group restrict_ip
Namespace
Drupal\Tests\restrict_ip\Unit\ServiceCode
public function blacklistDataProvider() {
return [
[
'/node/1',
TRUE,
TRUE,
'User is blocked on blacklisted path',
],
[
'/node/2',
FALSE,
FALSE,
'User is not blocked on non-blacklisted path',
],
];
}