You are here

public function RestrictByIpRedirectTests::testIpDifferGlobalNoDestination in Restrict Login or Role Access by IP Address 7.3

File

./restrict_by_ip.test, line 258

Class

RestrictByIpRedirectTests
Test that user is redirected to error page when login denied. Assumes that local testing environment has IP address of 127.0.0.1.

Code

public function testIpDifferGlobalNoDestination() {

  // Add global IP range.
  variable_set('restrict_by_ip_login_range', '10.0.0.0/8');
  $this
    ->assertRedirected();
}