function SecureSiteDigestGuestSetTest::testSecureSiteDigestGuestSetRandom in Secure Site 8
Request home page with random credentials.
File
- src/
Tests/ DigestAuth/ SecureSiteDigestGuestSetTest.php, line 73 - Contains Drupal\securesite\Tests\DigestAuth\SecureSiteDigestGuestSetTest
Class
- SecureSiteDigestGuestSetTest
- Functional tests for digest authentication with guest credentials set.
Namespace
Drupal\securesite\Tests\DigestAuthCode
function testSecureSiteDigestGuestSetRandom() {
$this->curl_options[CURLOPT_USERPWD] = $this
->randomName() . ':' . user_password();
$this
->drupalHead(NULL);
$this
->assertResponse(401, t('Requesting home page with random credentials.'));
}