public function RedirectTest::testIpDifferUserWithDestination in Restrict Login or Role Access by IP Address 8.4
File
- src/
Tests/ RedirectTest.php, line 54
Class
- RedirectTest
- Tests user is redirected when login denied.
Namespace
Drupal\restrict_by_ip\TestsCode
public function testIpDifferUserWithDestination() {
// Add out of range user IP.
$this->conf
->set('user.' . $this->regularUser
->id(), $this->outOfRangeCIDR)
->save();
$this
->assertRedirected('node');
}