You are here

function SecureSiteScriptStoredPasswordsUnitTest::testSecureSiteScriptsStoredPasswordsAdd in Secure Site 6.2

Same name and namespace in other branches
  1. 7.2 securesite.test \SecureSiteScriptStoredPasswordsUnitTest::testSecureSiteScriptsStoredPasswordsAdd()

Add new user.

File

./securesite.test, line 176
Tests for Secure Site module.

Class

SecureSiteScriptStoredPasswordsUnitTest
Unit tests for stored_passwords.php.

Code

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.'));
}