function SecureSiteFunctionUserLoadUnitTest::testSecureSiteUserLoadPass in Secure Site 6.2
Same name and namespace in other branches
- 7.2 securesite.test \SecureSiteFunctionUserLoadUnitTest::testSecureSiteUserLoadPass()
Load user with password.
File
- ./
securesite.test, line 474 - Tests for Secure Site module.
Class
- SecureSiteFunctionUserLoadUnitTest
- Unit tests for user_load().
Code
function testSecureSiteUserLoadPass() {
user_load(array(
'uid' => $this->user->uid,
'pass' => $this->user->pass_raw,
));
$command = "{$this->stored_passwords} {$this->name_arg} {$this->pass_arg} {$this->realm_arg}";
$this
->assertTrue(exec($command) == 'Updated ' . $this->user->name . " in {$this->realm}.", t('Loading user with password.'));
}