You are here

function SecureSiteFunctionUserLoadUnitTest::setUp in Secure Site 6.2

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

Implementation of setUp().

Overrides DrupalWebTestCase::setUp

File

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

Class

SecureSiteFunctionUserLoadUnitTest
Unit tests for user_load().

Code

function setUp() {
  parent::setUp('securesite');
  _securesite_copy_script_config($this);
  $this->user = $this
    ->drupalCreateUser();
  $this->realm = variable_get('securesite_realm', variable_get('site_name', 'Drupal'));
  $this->name_arg = 'username=' . escapeshellarg($this->user->name);
  $this->pass_arg = 'pass=' . escapeshellarg($this->user->pass_raw);
  $this->realm_arg = 'realm=' . escapeshellarg($this->realm);
  variable_set('securesite_type', array(
    SECURESITE_DIGEST,
  ));
}