public function SecureSiteTypeDigestGuestUnsetFunctionalTest::testSecureSiteTypeDigestGuestUnsetEmpty in Secure Site 7.2
Same name and namespace in other branches
- 6.2 securesite.test \SecureSiteTypeDigestGuestUnsetFunctionalTest::testSecureSiteTypeDigestGuestUnsetEmpty()
Request home page with empty credentials.
File
- ./
securesite.test, line 1854 - Tests for Secure Site module.
Class
- SecureSiteTypeDigestGuestUnsetFunctionalTest
- Functional tests for digest authentication with guest credentials unset.
Code
public 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.'));
}