Class Horde_Kolab_Test

Description

Base for PHPUnit scenarios.

$Horde: framework/Kolab_Test/lib/Horde/Kolab/Test.php,v 1.1.2.6 2009/01/06 15:23:19 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_Test/lib/Horde/Kolab/Test.php (line 46)

PHPUnit_Extensions_Story_TestCase
   |
   --Horde_Kolab_Test
Direct descendents
Class Description
 class Horde_Auth_KolabScenarioTest Kolab authentication scenarios.
 class Horde_Auth_KolabTest Kolab authentication tests.
 class Horde_Share_KolabScenarioTest Handling groups.
Method Summary
 NULL. assertError (mixed $var, [string $msg = null])
 NULL. assertNoError (mixed $var)
 void groupLists ()
 void invalidMails ()
 void largeList ()
 NULL prepareBrowser ()
 Kolab_Folder &prepareNewFolder ( &$storage, string $name, string $type, [boolean $default = false])
 NULL prepareRegistry ()
 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 922)

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 905)

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 835)
  • access: public
void groupLists ()
invalidMails (line 886)
  • access: public
void invalidMails ()
largeList (line 892)
  • access: public
void largeList ()
prepareBasicConfiguration (line 493)

Prepare a basic Kolab configuration.

  • access: public
NULL prepareBasicConfiguration ()
prepareBasicServer (line 360)

Prepare a Kolab server with some basic entries.

  • return: The empty server.
  • access: public
Horde_Kolab_Server &prepareBasicServer ()
prepareBasicSetup (line 372)

Prepare a Kolab server with some basic entries.

  • return: The empty server.
  • access: public
Horde_Kolab_Server &prepareBasicSetup ()
prepareBrowser (line 441)

Prepare the browser setup.

  • access: public
NULL prepareBrowser ()
prepareEmptyKolabServer (line 331)

Prepare an empty Kolab server.

  • return: The empty server.
  • access: public
Horde_Kolab_Server &prepareEmptyKolabServer ()
prepareEmptyKolabStorage (line 413)

Prepare an empty Kolab storage.

  • return: The empty storage.
  • access: public
Kolab_List &prepareEmptyKolabStorage ()
prepareKolabAuthDriver (line 428)

Prepare a Kolab Auth Driver.

  • return: The auth driver.
  • access: public
Auth &prepareKolabAuthDriver ()
prepareKolabSetup (line 468)

Prepare a Kolab setup.

  • access: public
NULL &prepareKolabSetup ()
prepareNewFolder (line 534)

Create a new folder.

  • return: The new folder.
  • access: public
Kolab_Folder &prepareNewFolder ( &$storage, string $name, string $type, [boolean $default = false])
  • string $name: Name of the new folder.
  • string $type: Type of the new folder.
  • boolean $default: Should the new folder be a default folder?
  • &$storage
prepareRegistry (line 453)

Prepare the registry.

  • access: public
NULL prepareRegistry ()
prepareUsers (line 386)

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.
provideBasicAddress (line 590)

Return a test address.

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

Return a test administrator.

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

Return a test domain maintainer.

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

Return a test group.

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

Return a test group.

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

Return a test maintainer.

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

Return a test shared folder.

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

Return a test user.

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

Return a test user.

  • return: The test user.
  • access: public
array provideBasicUserTwo ()
provideDistributionList (line 679)
  • access: public
void provideDistributionList ()
provideInvalidUsers (line 719)
  • access: public
void provideInvalidUsers ()
provideInvalidUserWithoutGivenName (line 695)
  • access: public
void provideInvalidUserWithoutGivenName ()
provideInvalidUserWithoutLastName (line 703)
  • access: public
void provideInvalidUserWithoutLastName ()
provideInvalidUserWithoutMail (line 711)
  • access: public
void provideInvalidUserWithoutMail ()
provideInvalidUserWithoutPassword (line 687)
  • access: public
void provideInvalidUserWithoutPassword ()
runGiven (line 57)

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.
runThen (line 183)

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.
runWhen (line 100)

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.
userAdd (line 880)
  • access: public
void userAdd ()
userListByAttribute (line 874)
  • access: public
void userListByAttribute ()
userListByLetter (line 868)
  • access: public
void userListByLetter ()
userLists (line 829)
  • access: public
void userLists ()
validAddresses (line 755)
  • access: public
void validAddresses ()
validAdmins (line 764)
  • access: public
void validAdmins ()
validDomainMaintainers (line 782)
  • access: public
void validDomainMaintainers ()
validGroups (line 791)
  • access: public
void validGroups ()
validGroupWithoutMembers (line 822)
  • access: public
void validGroupWithoutMembers ()
validMaintainers (line 773)
  • access: public
void validMaintainers ()
validSharedFolders (line 813)
  • access: public
void validSharedFolders ()
validUsers (line 743)

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

  • access: public
void validUsers ()

Documentation generated on Sun, 30 Jan 2011 05:22:48 +0000 by phpDocumentor 1.4.3