You are here

function SecureSiteTypeDigestGuestUnsetFunctionalTest::testSecureSiteTypeDigestGuestUnsetEmpty in Secure Site 6.2

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

Request home page with empty credentials.

File

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

Class

SecureSiteTypeDigestGuestUnsetFunctionalTest
Functional tests for digest authentication with guest credentials unset.

Code

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