You are here

public function SecureSiteTypeFormUserFunctionalTest::testSecureSiteTypeFormUserWrong in Secure Site 7.2

Same name and namespace in other branches
  1. 6.2 securesite.test \SecureSiteTypeFormUserFunctionalTest::testSecureSiteTypeFormUserWrong()

Request home page with wrong password.

File

./securesite.test, line 1560
Tests for Secure Site module.

Class

SecureSiteTypeFormUserFunctionalTest
Functional tests for form authentication with user credentials.

Code

public 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.'));
}