public function SecureSiteForceAlwaysFunctionalTest::testSecureSiteForceAlwaysResetInvalid in Secure Site 7.2
Same name and namespace in other branches
- 6.2 securesite.test \SecureSiteForceAlwaysFunctionalTest::testSecureSiteForceAlwaysResetInvalid()
Try invalid password reset URL.
File
- ./
securesite.test, line 1009 - Tests for Secure Site module.
Class
- SecureSiteForceAlwaysFunctionalTest
- Functional tests for page requests with authentication always forced.
Code
public function testSecureSiteForceAlwaysResetInvalid() {
$this
->drupalGet('user/reset/' . $this->user->uid);
$this
->assertResponse(200, t('Trying invalid password reset URL.'));
$this
->assertText('You have tried to use an invalid one-time log-in link.', t('Checking for error message.'));
}