You are here

function SecureSiteFunctionUserSaveUnitTest::testSecureSiteFunctionUserSaveAdd in Secure Site 6.2

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

Add new user.

File

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

Class

SecureSiteFunctionUserSaveUnitTest
Unit tests for user_save().

Code

function testSecureSiteFunctionUserSaveAdd() {
  $command = "{$this->stored_passwords} username=" . escapeshellarg($this->user->name) . " {$this->pass_arg} {$this->realm_arg}";
  $this
    ->assertTrue(exec($command) == 'Updated ' . $this->user->name . " in {$this->realm}.", t('Adding new user.'));
}