You are here

function SecureSiteTypeDigestUserStoredFunctionalTest::setUp in Secure Site 6.2

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

Implementation of setUp().

Overrides DrupalWebTestCase::setUp

File

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

Class

SecureSiteTypeDigestUserStoredFunctionalTest
Functional tests for digest authentication with user credentials.

Code

function setUp() {
  parent::setUp('securesite');
  _securesite_copy_script_config($this);
  variable_set('securesite_enabled', SECURESITE_ALWAYS);

  // Should work with all authentication methods enabled.
  variable_set('securesite_type', array(
    SECURESITE_FORM,
    SECURESITE_BASIC,
    SECURESITE_DIGEST,
  ));
  $this->user = $this
    ->drupalCreateUser(array(
    'access secured pages',
  ));
  $this->curl_options[CURLOPT_HTTPAUTH] = CURLAUTH_DIGEST;
}