You are here

function SecureSiteTypeDigestUserUnstoredFunctionalTest::testSecureSiteTypeDigestUserUnstoredStore in Secure Site 6.2

Same name and namespace in other branches
  1. 7.2 securesite.test \SecureSiteTypeDigestUserUnstoredFunctionalTest::testSecureSiteTypeDigestUserUnstoredStore()

Store password with fall-back authentication method.

File

./securesite.test, line 1701
Tests for Secure Site module.

Class

SecureSiteTypeDigestUserUnstoredFunctionalTest
Functional tests for digest authentication with user credentials.

Code

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.'));
  $directives = _securesite_parse_directives($this
    ->drupalGetHeader('Authentication-Info'));
  $this
    ->assertTrue(isset($directives['rspauth']), t('Checking stored password authentication info.'));
}