Class Horde_Kolab_Test_Filter

Description

Base for PHPUnit scenarios.

$Horde: framework/Kolab_Filter/lib/Horde/Kolab/Test/Filter.php,v 1.1.2.3 2009/03/06 08:43:15 wrobel 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_Filter/lib/Horde/Kolab/Test/Filter.php (line 37)

PHPUnit_Extensions_Story_TestCase
   |
   --Horde_Kolab_Test_Server
      |
      --Horde_Kolab_Test_Storage
         |
         --Horde_Kolab_Test_Filter
Direct descendents
Class Description
 class Horde_Kolab_Filter_IncomingTest Test the incoming filter.
 class Horde_Kolab_Filter_ContentTest Test the content filter.
 class Horde_Kolab_Filter_ResourceTest Test resource handling
Method Summary
 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 sendFixture ( $infile,  $outfile,  $user,  $client,  $from,  $to,  $host, [ $params = array()])
 void setUp ()
Methods
prepareUsers (line 133)

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.

Redefinition of:
Horde_Kolab_Test_Server::prepareUsers()
Fill a Kolab Server with test users.
provideFilterCalendarUser (line 211)

Return the calendar user.

  • return: The calendar user.
  • access: public
array provideFilterCalendarUser ()
provideFilterUserOne (line 151)

Return a test user.

  • return: The test user.
  • access: public
array provideFilterUserOne ()
provideFilterUserThree (line 192)

Return a test user.

  • return: The test user.
  • access: public
array provideFilterUserThree ()
provideFilterUserTwo (line 172)

Return a test user.

  • return: The test user.
  • access: public
array provideFilterUserTwo ()
runGiven (line 84)

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.

Redefinition of:
Horde_Kolab_Test_Storage::runGiven()
Handle a "given" step.
runThen (line 118)

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.

Redefinition of:
Horde_Kolab_Test_Storage::runThen()
Handle a "then" step.
runWhen (line 101)

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.

Redefinition of:
Horde_Kolab_Test_Storage::runWhen()
Handle a "when" step.
sendFixture (line 225)
  • access: public
void sendFixture ( $infile,  $outfile,  $user,  $client,  $from,  $to,  $host, [ $params = array()])
  • $infile
  • $outfile
  • $user
  • $client
  • $from
  • $to
  • $host
  • $params
setUp (line 42)

Set up testing.

  • access: protected
void setUp ()

Inherited Methods

Inherited From Horde_Kolab_Test_Storage

 Horde_Kolab_Test_Storage::prepareBasicConfiguration()
 Horde_Kolab_Test_Storage::prepareBasicSetup()
 Horde_Kolab_Test_Storage::prepareBrowser()
 Horde_Kolab_Test_Storage::prepareConfiguration()
 Horde_Kolab_Test_Storage::prepareEmptyKolabStorage()
 Horde_Kolab_Test_Storage::prepareFixedConfiguration()
 Horde_Kolab_Test_Storage::prepareKolabSetup()
 Horde_Kolab_Test_Storage::prepareNewFolder()
 Horde_Kolab_Test_Storage::prepareNotification()
 Horde_Kolab_Test_Storage::prepareRegistry()
 Horde_Kolab_Test_Storage::provideHordeBase()
 Horde_Kolab_Test_Storage::provideServerName()
 Horde_Kolab_Test_Storage::runGiven()
 Horde_Kolab_Test_Storage::runThen()
 Horde_Kolab_Test_Storage::runWhen()

Inherited From Horde_Kolab_Test_Server

 Horde_Kolab_Test_Server::assertError()
 Horde_Kolab_Test_Server::assertNoError()
 Horde_Kolab_Test_Server::groupLists()
 Horde_Kolab_Test_Server::invalidMails()
 Horde_Kolab_Test_Server::largeList()
 Horde_Kolab_Test_Server::prepareBasicServer()
 Horde_Kolab_Test_Server::prepareEmptyKolabServer()
 Horde_Kolab_Test_Server::prepareKolabAuthDriver()
 Horde_Kolab_Test_Server::prepareUsers()
 Horde_Kolab_Test_Server::provideBasicAddress()
 Horde_Kolab_Test_Server::provideBasicAdmin()
 Horde_Kolab_Test_Server::provideBasicDomainMaintainer()
 Horde_Kolab_Test_Server::provideBasicGroupOne()
 Horde_Kolab_Test_Server::provideBasicGroupTwo()
 Horde_Kolab_Test_Server::provideBasicMaintainer()
 Horde_Kolab_Test_Server::provideBasicSharedFolder()
 Horde_Kolab_Test_Server::provideBasicUserOne()
 Horde_Kolab_Test_Server::provideBasicUserTwo()
 Horde_Kolab_Test_Server::provideDistributionList()
 Horde_Kolab_Test_Server::provideInvalidUsers()
 Horde_Kolab_Test_Server::provideInvalidUserWithoutGivenName()
 Horde_Kolab_Test_Server::provideInvalidUserWithoutLastName()
 Horde_Kolab_Test_Server::provideInvalidUserWithoutMail()
 Horde_Kolab_Test_Server::provideInvalidUserWithoutPassword()
 Horde_Kolab_Test_Server::runGiven()
 Horde_Kolab_Test_Server::runThen()
 Horde_Kolab_Test_Server::runWhen()
 Horde_Kolab_Test_Server::userAdd()
 Horde_Kolab_Test_Server::userListByAttribute()
 Horde_Kolab_Test_Server::userListByLetter()
 Horde_Kolab_Test_Server::userLists()
 Horde_Kolab_Test_Server::validAddresses()
 Horde_Kolab_Test_Server::validAdmins()
 Horde_Kolab_Test_Server::validDomainMaintainers()
 Horde_Kolab_Test_Server::validGroups()
 Horde_Kolab_Test_Server::validGroupWithoutMembers()
 Horde_Kolab_Test_Server::validMaintainers()
 Horde_Kolab_Test_Server::validSharedFolders()
 Horde_Kolab_Test_Server::validUsers()

Documentation generated on Sun, 30 Jan 2011 05:17:20 +0000 by phpDocumentor 1.4.3