public function SecureSiteFunctionUserSaveUnitTest::testSecureSiteFunctionUserSaveAdd in Secure Site 7.2
Same name and namespace in other branches
- 6.2 securesite.test \SecureSiteFunctionUserSaveUnitTest::testSecureSiteFunctionUserSaveAdd()
Add new user.
File
- ./
securesite.test, line 411 - Tests for Secure Site module.
Class
- SecureSiteFunctionUserSaveUnitTest
- Unit tests for user_save().
Code
public function testSecureSiteFunctionUserSaveAdd() {
$command = "{$this->stored_passwords} username=" . escapeshellarg($this->user->name) . " {$this->pass_arg} {$this->realm_arg}";
$this
->assertTrue(exec($command) == 'Updated ' . $this->user->name . " in {$this->realm}.", t('Adding new user.'));
}