You are here

function SecureSiteTypeBasicGuestSetFunctionalTest::testSecureSiteTypeBasicGuestSetWrong in Secure Site 6.2

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

Request home page with random credentials.

File

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

Class

SecureSiteTypeBasicGuestSetFunctionalTest
Functional tests for basic authentication with guest credentials set.

Code

function testSecureSiteTypeBasicGuestSetWrong() {
  $this->curl_options[CURLOPT_USERPWD] = $this
    ->randomName() . ':' . user_password();
  $this
    ->drupalHead(NULL);
  $this
    ->assertResponse(401, t('Requesting home page with random credentials.'));
}