You are here

public function SecureSiteTypeDigestUserStoredFunctionalTest::testSecureSiteTypeDigestUserStoredWrong in Secure Site 7.2

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

Request home page with wrong password.

File

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

Class

SecureSiteTypeDigestUserStoredFunctionalTest
Functional tests for digest authentication with user credentials.

Code

public function testSecureSiteTypeDigestUserStoredWrong() {
  $this->curl_options[CURLOPT_USERPWD] = $this->user->name . ':' . $this->user->pass;
  $this
    ->drupalHead(NULL);
  $this
    ->assertResponse(401, t('Requesting home page with wrong password.'));
}