function SecureSiteTypeFormUserFunctionalTest::testSecureSiteTypeFormUserWrong in Secure Site 6.2
Same name and namespace in other branches
- 7.2 securesite.test \SecureSiteTypeFormUserFunctionalTest::testSecureSiteTypeFormUserWrong()
Request home page with wrong password.
File
- ./
securesite.test, line 1523 - Tests for Secure Site module.
Class
- SecureSiteTypeFormUserFunctionalTest
- Functional tests for form authentication with user credentials.
Code
function testSecureSiteTypeFormUserWrong() {
$this
->drupalPost('', array(
'name' => $this->access_user->name,
'pass' => $this->access_user->pass,
), 'Log in');
$this
->assertFieldByXPath('//form[@id="securesite-user-login"]', '', t('Requesting home page with wrong password.'));
$this
->assertText('Unrecognized user name and/or password.', t('Checking for error message when password is wrong.'));
}