public function SecureSiteScriptStoredPasswordsUnitTest::testSecureSiteScriptsStoredPasswordsAdd in Secure Site 7.2
Same name and namespace in other branches
- 6.2 securesite.test \SecureSiteScriptStoredPasswordsUnitTest::testSecureSiteScriptsStoredPasswordsAdd()
 
Add new user.
File
- ./
securesite.test, line 177  - Tests for Secure Site module.
 
Class
- SecureSiteScriptStoredPasswordsUnitTest
 - Unit tests for stored_passwords.php.
 
Code
public function testSecureSiteScriptsStoredPasswordsAdd() {
  $command = "{$this->stored_passwords} {$this->name_arg} {$this->pass_arg} {$this->realm_arg} op=create";
  $this
    ->assertTrue(exec($command) == 'Added ' . $this->user->name . " to {$this->realm}.", t('Adding new user.'));
}