You are here

function SecureSiteScriptStoredPasswordsUnitTest::testSecureSiteScriptsStoredPasswordsUpdateExisting in Secure Site 6.2

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

Update existing user.

File

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

Class

SecureSiteScriptStoredPasswordsUnitTest
Unit tests for stored_passwords.php.

Code

function testSecureSiteScriptsStoredPasswordsUpdateExisting() {
  exec("{$this->stored_passwords} {$this->name_arg} {$this->pass_arg} {$this->realm_arg} op=create");
  $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('Updating existing user.'));
}