function SecureSiteScriptStoredPasswordsUnitTest::testSecureSiteScriptsStoredPasswordsDeleteNonexistent in Secure Site 6.2
Same name and namespace in other branches
- 7.2 securesite.test \SecureSiteScriptStoredPasswordsUnitTest::testSecureSiteScriptsStoredPasswordsDeleteNonexistent()
Remove nonexistent user.
File
- ./
securesite.test, line 210 - Tests for Secure Site module.
Class
- SecureSiteScriptStoredPasswordsUnitTest
- Unit tests for stored_passwords.php.
Code
function testSecureSiteScriptsStoredPasswordsDeleteNonexistent() {
$command = "{$this->stored_passwords} {$this->name_arg} {$this->realm_arg} op=delete";
$this
->assertTrue(exec($command) == $this->user->name . " not found in {$this->realm}.", t('Removing nonexistent user.'));
}