You are here

public function RestrictIpServiceInterface::testForBlock in Restrict IP 8.2

Same name and namespace in other branches
  1. 8 src/Service/RestrictIpServiceInterface.php \Drupal\restrict_ip\Service\RestrictIpServiceInterface::testForBlock()
  2. 3.x src/Service/RestrictIpServiceInterface.php \Drupal\restrict_ip\Service\RestrictIpServiceInterface::testForBlock()

* Run all tests to see if the current user should be blocked or not * based on their IP address * *

Parameters

$runInCli bool: * Indicate whether the test should be run even when the code is being run through * the command line. This will almost always be FALSE, to prevent the user from * being blocked while running Drush commands, however this needs to be set as * TRUE when running PHPUnit tests, in order to be able to run the code.

1 method overrides RestrictIpServiceInterface::testForBlock()
RestrictIpService::testForBlock in src/Service/RestrictIpService.php
*

File

src/Service/RestrictIpServiceInterface.php, line 26

Class

RestrictIpServiceInterface

Namespace

Drupal\restrict_ip\Service

Code

public function testForBlock($runInCli = FALSE);