You are here

public function SecureSiteTypeDigestGuestUnsetFunctionalTest::testSecureSiteTypeDigestGuestUnsetRandom in Secure Site 7.2

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

Request home page with random credentials.

File

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

Class

SecureSiteTypeDigestGuestUnsetFunctionalTest
Functional tests for digest authentication with guest credentials unset.

Code

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