You are here

public function SecureSiteTypeBasicUserFunctionalTest::testSecureSiteTypeBasicUserWrong in Secure Site 7.2

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

Request home page with wrong password.

File

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

Class

SecureSiteTypeBasicUserFunctionalTest
Functional tests for basic authentication with user credentials.

Code

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