public function SecureSiteTypeDigestGuestSetFunctionalTest::testSecureSiteDigestGuestSetEmpty in Secure Site 7.2
Same name and namespace in other branches
- 6.2 securesite.test \SecureSiteTypeDigestGuestSetFunctionalTest::testSecureSiteDigestGuestSetEmpty()
Request home page with empty credentials.
File
- ./
securesite.test, line 1911 - Tests for Secure Site module.
Class
- SecureSiteTypeDigestGuestSetFunctionalTest
- Functional tests for digest authentication with guest credentials set.
Code
public function testSecureSiteDigestGuestSetEmpty() {
$this->curl_options[CURLOPT_USERPWD] = ':';
$this
->drupalHead(NULL);
$this
->assertResponse(403, t('Requesting home page with empty credentials.'));
}