public function SecureSiteTypeDigestUserUnstoredFunctionalTest::testSecureSiteTypeDigestUserUnstoredStore in Secure Site 7.2
Same name and namespace in other branches
- 6.2 securesite.test \SecureSiteTypeDigestUserUnstoredFunctionalTest::testSecureSiteTypeDigestUserUnstoredStore()
Store password with fall-back authentication method.
File
- ./
securesite.test, line 1741 - Tests for Secure Site module.
Class
- SecureSiteTypeDigestUserUnstoredFunctionalTest
- Functional tests for digest authentication with user credentials.
Code
public function testSecureSiteTypeDigestUserUnstoredStore() {
$this->curl_options[CURLOPT_HTTPAUTH] = CURLAUTH_DIGEST | CURLAUTH_BASIC;
$this
->drupalHead(NULL);
$this
->curlClose();
$this
->drupalHead(NULL);
$this
->assertResponse(200, t('Storing password with fall-back authentication method.'));
module_load_include('inc', 'securesite');
$directives = _securesite_parse_directives($this
->drupalGetHeader('Authentication-Info'));
$this
->assertTrue(isset($directives['rspauth']), t('Checking stored password authentication info.'));
}