You are here

function SecureSiteScriptStoredPasswordsUnitTest::testSecureSiteScriptsStoredPasswordsRealm in Secure Site 6.2

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

Remove all users from realm.

File

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

Class

SecureSiteScriptStoredPasswordsUnitTest
Unit tests for stored_passwords.php.

Code

function testSecureSiteScriptsStoredPasswordsRealm() {
  $command = "{$this->stored_passwords} {$this->realm_arg} op=delete";
  $this
    ->assertTrue(exec($command) == "Removed users from {$this->realm}.", t('Removing all users from realm.'));
}