Class Horde_Kolab_Test_Server

Description

Base for PHPUnit scenarios.

$Horde: framework/Kolab_Server/lib/Horde/Kolab/Test/Server.php,v 1.1.2.3 2009/01/06 15:23:17 jan Exp $

Copyright 2008-2009 The Horde Project (http://www.horde.org/)

See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.

Located in /Kolab_Server/lib/Horde/Kolab/Test/Server.php (line 44)

PHPUnit_Extensions_Story_TestCase
   |
   --Horde_Kolab_Test_Server
Direct descendents
Class Description
 class Horde_Kolab_Server_AddingObjectsTest Adding objects to the server.
 class Horde_Kolab_Server_AdminTest Test the admin object.
 class Horde_Kolab_Server_DistListHandlingTest Handling distribution lists.
 class Horde_Kolab_Server_GroupHandlingTest Handling groups.
 class Horde_Kolab_Server_GroupTest Test the group object.
 class Horde_Kolab_Server_ObjectTest The the handling of objects.
 class Horde_Kolab_Server_SessionTest Test the Kolab session handler.
 class Horde_Kolab_Server_UserHandlingTest Handling users.
 class Horde_Kolab_Server_UserTest Test the user object.
 class Horde_Kolab_Server_testTest Test the test backend.
 class Horde_Kolab_Test_Storage Base for PHPUnit scenarios.
Method Summary
 NULL. assertError (mixed $var, [string $msg = null])
 NULL. assertNoError (mixed $var)
 void groupLists ()
 void invalidMails ()
 void largeList ()
 Horde_Kolab_Server prepareUsers (Kolab_Server &$server)
 mixed runGiven (array &$world, string $action, array $arguments)
 mixed runThen (array &$world, string $action, array $arguments)
 mixed runWhen (array &$world, string $action, array $arguments)
 void userAdd ()
 void userLists ()
 void validAddresses ()
 void validAdmins ()
 void validGroups ()
 void validUsers ()
Methods
assertError (line 739)

Ensure that the variable contains a PEAR_Error and fail if it does not. Optionally compare the error message with the provided message and fail if both do not match.

  • access: public
NULL. assertError (mixed $var, [string $msg = null])
  • mixed $var: The variable to check.
  • string $msg: The expected error message.
assertNoError (line 722)

Ensure that the variable contains no PEAR_Error and fail if it does.

  • access: public
NULL. assertNoError (mixed $var)
  • mixed $var: The variable to check.
groupLists (line 652)
  • access: public
void groupLists ()
invalidMails (line 703)
  • access: public
void invalidMails ()
largeList (line 709)
  • access: public
void largeList ()
prepareBasicServer (line 311)

Prepare a Kolab server with some basic entries.

  • return: The empty server.
  • access: public
Horde_Kolab_Server &prepareBasicServer ()
prepareEmptyKolabServer (line 282)

Prepare an empty Kolab server.

  • return: The empty server.
  • access: public
Horde_Kolab_Server &prepareEmptyKolabServer ()
prepareKolabAuthDriver (line 352)

Prepare a Kolab Auth Driver.

  • return: The auth driver.
  • access: public
Auth &prepareKolabAuthDriver ()
prepareUsers (line 325)

Fill a Kolab Server with test users.

  • return: The empty server.
  • access: public
Horde_Kolab_Server prepareUsers (Kolab_Server &$server)
  • Kolab_Server &$server: The server to populate.

Redefined in descendants as:
provideBasicAddress (line 407)

Return a test address.

  • return: The test address.
  • access: public
array provideBasicAddress ()
provideBasicAdmin (line 420)

Return a test administrator.

  • return: The test administrator.
  • access: public
array provideBasicAdmin ()
provideBasicDomainMaintainer (line 449)

Return a test domain maintainer.

  • return: The test domain maintainer.
  • access: public
array provideBasicDomainMaintainer ()
provideBasicGroupOne (line 477)

Return a test group.

  • return: The test group.
  • access: public
array provideBasicGroupOne ()
provideBasicGroupTwo (line 488)

Return a test group.

  • return: The test group.
  • access: public
array provideBasicGroupTwo ()
provideBasicMaintainer (line 434)

Return a test maintainer.

  • return: The test maintainer.
  • access: public
array provideBasicMaintainer ()
provideBasicSharedFolder (line 465)

Return a test shared folder.

  • return: The test shared folder.
  • access: public
array provideBasicSharedFolder ()
provideBasicUserOne (line 365)

Return a test user.

  • return: The test user.
  • access: public
array provideBasicUserOne ()
provideBasicUserTwo (line 387)

Return a test user.

  • return: The test user.
  • access: public
array provideBasicUserTwo ()
provideDistributionList (line 496)
  • access: public
void provideDistributionList ()
provideInvalidUsers (line 536)
  • access: public
void provideInvalidUsers ()
provideInvalidUserWithoutGivenName (line 512)
  • access: public
void provideInvalidUserWithoutGivenName ()
provideInvalidUserWithoutLastName (line 520)
  • access: public
void provideInvalidUserWithoutLastName ()
provideInvalidUserWithoutMail (line 528)
  • access: public
void provideInvalidUserWithoutMail ()
provideInvalidUserWithoutPassword (line 504)
  • access: public
void provideInvalidUserWithoutPassword ()
runGiven (line 55)

Handle a "given" step.

  • return: The outcome of the step.
  • access: public
mixed runGiven (array &$world, string $action, array $arguments)
  • array &$world: Joined "world" of variables.
  • string $action: The description of the step.
  • array $arguments: Additional arguments to the step.

Redefined in descendants as:
runThen (line 142)

Handle a "then" step.

  • return: The outcome of the step.
  • access: public
mixed runThen (array &$world, string $action, array $arguments)
  • array &$world: Joined "world" of variables.
  • string $action: The description of the step.
  • array $arguments: Additional arguments to the step.

Redefined in descendants as:
runWhen (line 81)

Handle a "when" step.

  • return: The outcome of the step.
  • access: public
mixed runWhen (array &$world, string $action, array $arguments)
  • array &$world: Joined "world" of variables.
  • string $action: The description of the step.
  • array $arguments: Additional arguments to the step.

Redefined in descendants as:
userAdd (line 697)
  • access: public
void userAdd ()
userListByAttribute (line 691)
  • access: public
void userListByAttribute ()
userListByLetter (line 685)
  • access: public
void userListByLetter ()
userLists (line 646)
  • access: public
void userLists ()
validAddresses (line 572)
  • access: public
void validAddresses ()
validAdmins (line 581)
  • access: public
void validAdmins ()
validDomainMaintainers (line 599)
  • access: public
void validDomainMaintainers ()
validGroups (line 608)
  • access: public
void validGroups ()
validGroupWithoutMembers (line 639)
  • access: public
void validGroupWithoutMembers ()
validMaintainers (line 590)
  • access: public
void validMaintainers ()
validSharedFolders (line 630)
  • access: public
void validSharedFolders ()
validUsers (line 560)

FIXME: Prefix the stuff bewlow with provide...()

  • access: public
void validUsers ()

Documentation generated on Sun, 30 Jan 2011 05:21:13 +0000 by phpDocumentor 1.4.3