You are here

public function SecureSiteFunctionUserDeleteUnitTest::testSecureSiteFunctionUserDelete in Secure Site 7.2

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

Remove user.

File

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

Class

SecureSiteFunctionUserDeleteUnitTest
Unit test for user_delete().

Code

public function testSecureSiteFunctionUserDelete() {
  user_cancel(array(), $this->user->uid, $method = 'user_cancel_delete');
  $command = "{$this->stored_passwords} {$this->name_arg} {$this->pass_arg} {$this->realm_arg}";
  $this
    ->assertTrue(exec($command) == $this->user->name . " not found in {$this->realm}.", t('Removing user.'));
}