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