You are here

function SecureSiteTypeBasicUserFunctionalTest::testSecureSiteTypeBasicUserWrong in Secure Site 6.2

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

Request home page with wrong password.

File

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

Class

SecureSiteTypeBasicUserFunctionalTest
Functional tests for basic authentication with user credentials.

Code

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