You are here

function SecureSiteDigestGuestUnsetTest::testSecureSiteTypeDigestGuestUnsetEmpty in Secure Site 8

Request home page with empty credentials.

File

src/Tests/DigestAuth/SecureSiteDigestGuestUnsetTest.php, line 54
Contains Drupal\securesite\Tests\DigestAuth\SecureSiteDigestGuestUnsetTest

Class

SecureSiteDigestGuestUnsetTest
Functional tests for digest authentication with guest credentials unset.

Namespace

Drupal\securesite\Tests\DigestAuth

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