You are here

function SecureSiteTypeDigestGuestUnsetFunctionalTest::testSecureSiteTypeDigestGuestUnsetRandom in Secure Site 6.2

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

Request home page with random credentials.

File

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

Class

SecureSiteTypeDigestGuestUnsetFunctionalTest
Functional tests for digest authentication with guest credentials unset.

Code

function testSecureSiteTypeDigestGuestUnsetRandom() {
  $this->curl_options[CURLOPT_USERPWD] = $this
    ->randomName() . ':' . user_password();
  $this
    ->drupalHead(NULL);
  $this
    ->assertResponse(200, t('Requesting home page with random credentials.'));
  $this
    ->assertFalse($this
    ->drupalGetHeader('Authentication-Info'), t('Checking digest authentication bypass for random guest credentials.'));
}