public function LoginTest::testIpDifferGlobalDiffUser in Restrict Login or Role Access by IP Address 8.4
File
- src/
Tests/ LoginTest.php, line 63
Class
Namespace
Drupal\restrict_by_ip\TestsCode
public function testIpDifferGlobalDiffUser() {
// Add out of range global IP.
$this->conf
->set('login_range', $this->outOfRangeCIDR);
// Add in range user IP.
$this->conf
->set('user.' . $this->regularUser
->id(), $this->outOfRangeCIDR);
$this->conf
->save();
$this
->assertNoLogin();
}