You are here

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

File

src/Tests/RedirectTest.php, line 46

Class

RedirectTest
Tests user is redirected when login denied.

Namespace

Drupal\restrict_by_ip\Tests

Code

public function testIpDifferGlobalWithDestination() {

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