You are here

public function RedirectTest::testIpDifferGlobalNoDestination in Restrict Login or Role Access by IP Address 8.4

File

src/Tests/RedirectTest.php, line 30

Class

RedirectTest
Tests user is redirected when login denied.

Namespace

Drupal\restrict_by_ip\Tests

Code

public function testIpDifferGlobalNoDestination() {

  // Add global IP range.
  $this->conf
    ->set('login_range', $this->outOfRangeCIDR)
    ->save();
  $this
    ->assertRedirected();
}