private function RestrictByIpLoginTests::assertNoLogin in Restrict Login or Role Access by IP Address 7.3
5 calls to RestrictByIpLoginTests::assertNoLogin()
- RestrictByIpLoginTests::testIpDifferGlobal in ./
restrict_by_ip.test - RestrictByIpLoginTests::testIpDifferGlobalDiffUser in ./
restrict_by_ip.test - RestrictByIpLoginTests::testIpDifferGlobalMatchUser in ./
restrict_by_ip.test - RestrictByIpLoginTests::testIpDifferUser in ./
restrict_by_ip.test - RestrictByIpLoginTests::testIpMatchGlobalDifferUser in ./
restrict_by_ip.test
File
- ./
restrict_by_ip.test, line 137
Class
- RestrictByIpLoginTests
- Test that IP restrictions work. Assumes that local testing environment has IP address of 127.0.0.1.
Code
private function assertNoLogin() {
$edit = array(
'name' => $this->regularUser->name,
'pass' => $this->regularUser->pass_raw,
);
$this
->drupalPost('user', $edit, t('Log in'));
$this
->assertNoLink(t('Log out'), 0, t('User %name unsuccessfully logged in.', array(
'%name' => $this->regularUser->name,
)), t('User login'));
}