You are here

function SecureSiteFunctionUserDeleteUnitTest::setUp in Secure Site 6.2

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

Implementation of setUp().

Overrides DrupalWebTestCase::setUp

File

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

Class

SecureSiteFunctionUserDeleteUnitTest
Unit test for user_delete().

Code

function setUp() {
  parent::setUp('securesite');
  _securesite_copy_script_config($this);
  variable_set('securesite_type', array(
    SECURESITE_DIGEST,
  ));
  $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);
}