You are here

public function SecureSiteScriptStoredPasswordsUnitTest::testSecureSiteScriptsStoredPasswordsUpdateExisting in Secure Site 7.2

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

Update existing user.

File

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

Class

SecureSiteScriptStoredPasswordsUnitTest
Unit tests for stored_passwords.php.

Code

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