You are here

function SecureSiteDigestGuestSetTest::testSecureSiteDigestGuestSetEmpty in Secure Site 8

Request home page with empty credentials.

File

src/Tests/DigestAuth/SecureSiteDigestGuestSetTest.php, line 64
Contains Drupal\securesite\Tests\DigestAuth\SecureSiteDigestGuestSetTest

Class

SecureSiteDigestGuestSetTest
Functional tests for digest authentication with guest credentials set.

Namespace

Drupal\securesite\Tests\DigestAuth

Code

function testSecureSiteDigestGuestSetEmpty() {
  $this->curl_options[CURLOPT_USERPWD] = ':';
  $this
    ->drupalHead(NULL);
  $this
    ->assertResponse(403, t('Requesting home page with empty credentials.'));
}