function SecureSiteScriptStoredPasswordsUnitTest::setUp in Secure Site 6.2
Same name and namespace in other branches
- 7.2 securesite.test \SecureSiteScriptStoredPasswordsUnitTest::setUp()
Implementation of setUp().
Overrides DrupalWebTestCase::setUp
File
- ./
securesite.test, line 155 - Tests for Secure Site module.
Class
- SecureSiteScriptStoredPasswordsUnitTest
- Unit tests for stored_passwords.php.
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);
}