You are here

public function SecureSiteScriptStoredPasswordsUnitTest::testSecureSiteScriptsStoredPasswordsDeleteExisting in Secure Site 7.2

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

Remove existing user.

File

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

Class

SecureSiteScriptStoredPasswordsUnitTest
Unit tests for stored_passwords.php.

Code

public function testSecureSiteScriptsStoredPasswordsDeleteExisting() {
  exec("{$this->stored_passwords} {$this->name_arg} {$this->pass_arg} {$this->realm_arg} op=create");
  $command = "{$this->stored_passwords} {$this->name_arg} {$this->realm_arg} op=delete";
  $this
    ->assertTrue(exec($command) == 'Removed ' . $this->user->name . " from {$this->realm}.", t('Removing existing user.'));
}