Свойство | Type | Description | |
---|---|---|---|
$added | array | Uid of added objects. Should be removed on tearDown. |
Свойство | Type | Description | |
---|---|---|---|
$_environments | array | The environments we provide to the test. |
Méthode | Description | |
---|---|---|
addBasicUsersToServer ( Horde_Kolab_Server $server ) : null | Fill a Kolab Server with test users. | |
addToServer ( Horde_Kolab_Server $server, array $object ) : Horde_Kolab_Server_Object | Add an object to a server and remember it for the tear down method. | |
addToServers ( array $object ) : array | Add an object to the registered servers. | |
assertEasyAttributes ( Horde_Kolab_Server_Object $object, Horde_Kolab_Server $server, array $list ) : null | Test easy attributes. | |
assertError ( mixed $var, string $msg = null ) : NULL. | Ensure that the variable contains a Horde_Kolab_Server_Exception and fail if it does not. Optionally compare the error message with the provided message and fail if both do not match. | |
assertNoError ( mixed $var ) : NULL. | Ensure that the variable contains no Horde_Kolab_Server_Exception and fail if it does. | |
assertRecursiveType ( $results, $type ) | ||
assertSimpleAttributes ( Horde_Kolab_Server_Object $object, Horde_Kolab_Server $server, array $list ) : null | Test simple attributes. | |
getEnvironments ( ) : array | Identify the environments we want to run our tests in. | |
getKolabMockServer ( ) : Horde_Kolab_Server | Shortcut to get a Kolab mock server. | |
getKolabServer ( string $environment ) : Horde_Kolab_Server | Get a server from a specific environment. | |
getKolabServers ( ) : array | Retrieves the available servers. This assumes all environments have been initialied. | |
groupLists ( ) : array | Provide a set of valid groups. | |
initializeEnvironment ( string $environment ) : null | Initialize the given environment. | |
initializeEnvironments ( ) : null | Initialize the environments. | |
invalidMails ( ) | ||
largeList ( ) | ||
listObjectsOnServer ( array $type ) : array | List objects on the registered servers. | |
prepareInjector ( string $environment ) : null | Prepare an injector for the given environment. | |
prepareKolabServer ( string $environment ) : null | Prepare the server for the given environment. | |
prepareKolabServerConfiguration ( string $environment ) : null | Prepare the server configuration for the given environment. | |
prepareLogger ( string $environment ) : null | Prepare the log handler for the given environment. | |
provideBasicAddress ( ) : array | Return a test address. | |
provideBasicAdmin ( ) : array | Return a test administrator. | |
provideBasicDomainMaintainer ( ) : array | Return a test domain maintainer. | |
provideBasicGroupOne ( ) : array | Return a test group. | |
provideBasicGroupTwo ( ) : array | Return a test group. | |
provideBasicMaintainer ( ) : array | Return a test maintainer. | |
provideBasicSharedFolder ( ) : array | Return a test shared folder. | |
provideBasicUserOne ( ) : array | Return a test user. | |
provideBasicUserTwo ( ) : array | Return a test user. | |
provideDistributionList ( ) | ||
provideGroupWithoutMembers ( ) : array | Return a test group. | |
provideInvalidUserWithoutGivenName ( ) | ||
provideInvalidUserWithoutLastName ( ) | ||
provideInvalidUserWithoutMail ( ) | ||
provideInvalidUserWithoutPassword ( ) | ||
provideInvalidUsers ( ) | ||
runGiven ( &$world, string $action, array $arguments ) : mixed | Handle a "given" step. | |
runThen ( &$world, string $action, array $arguments ) : mixed | Handle a "then" step. | |
runWhen ( &$world, string $action, array $arguments ) : mixed | Handle a "when" step. | |
setEnvironments ( array $environments ) : null | Specifically set the environments we wish to support. | |
userAdd ( ) | ||
userListByAttribute ( ) | ||
userListByLetter ( ) | ||
userLists ( ) | ||
validAddresses ( ) | ||
validAdmins ( ) | ||
validDomainMaintainers ( ) | ||
validGroups ( ) : array | Provide a set of valid groups. | |
validMaintainers ( ) | ||
validSharedFolders ( ) | ||
validUsers ( ) |
Méthode | Description | |
---|---|---|
assertAdd ( Horde_Kolab_Server $server, array $store, array $fetch ) : NULL. | Assert that creating a new object operation yields some predictable attribute results. | |
assertSimpleSequence ( Horde_Kolab_Server_Object $object, Horde_Kolab_Server $server, string $attribute, array $sequence, $pop_arrays = false ) : NULL. | Assert that a save() operation yields some predictable attribute results. | |
assertStoreFetch ( Horde_Kolab_Server_Object $object, Horde_Kolab_Server $server, array $store, array $fetch, $pop_arrays = false ) : NULL. | Assert that a save() operation yields some predictable attribute results. | |
fetchByCn ( $server, $cn ) | ||
setUp ( ) : NULL. | Setup function. | |
tearDown ( ) : NULL. | Cleanup function. |
public addBasicUsersToServer ( Horde_Kolab_Server $server ) : null | ||
$server | Horde_Kolab_Server | The server to fill. |
Résultat | null |
public addToServer ( Horde_Kolab_Server $server, array $object ) : Horde_Kolab_Server_Object | ||
$server | Horde_Kolab_Server | The server to add the object to. |
$object | array | The object data to store. |
Résultat | Horde_Kolab_Server_Object | The resulting object. |
public addToServers ( array $object ) : array | ||
$object | array | The object data to store. |
Résultat | array | An array of objects. |
public assertEasyAttributes ( Horde_Kolab_Server_Object $object, Horde_Kolab_Server $server, array $list ) : null | ||
$object | Horde_Kolab_Server_Object | |
$server | Horde_Kolab_Server | |
$list | array | |
Résultat | null |
public assertError ( mixed $var, string $msg = null ) : NULL. | ||
$var | mixed | The variable to check. |
$msg | string | The expected error message. |
Résultat | NULL. |
public assertNoError ( mixed $var ) : NULL. | ||
$var | mixed | The variable to check. |
Résultat | NULL. |
public assertSimpleAttributes ( Horde_Kolab_Server_Object $object, Horde_Kolab_Server $server, array $list ) : null | ||
$object | Horde_Kolab_Server_Object | |
$server | Horde_Kolab_Server | |
$list | array | |
Résultat | null |
protected assertSimpleSequence ( Horde_Kolab_Server_Object $object, Horde_Kolab_Server $server, string $attribute, array $sequence, $pop_arrays = false ) : NULL. | ||
$object | Horde_Kolab_Server_Object | The object to work on. |
$server | Horde_Kolab_Server | The server the object resides on. |
$attribute | string | The attribute to work on. |
$sequence | array | The sequence of values to set and expect. |
Résultat | NULL. |
protected assertStoreFetch ( Horde_Kolab_Server_Object $object, Horde_Kolab_Server $server, array $store, array $fetch, $pop_arrays = false ) : NULL. | ||
$object | Horde_Kolab_Server_Object | The object to work on. |
$server | Horde_Kolab_Server | The server the object resides on. |
$store | array | The information to save. |
$fetch | array | The expected results. |
Résultat | NULL. |
public getEnvironments ( ) : array | ||
Résultat | array | The selected environments. |
public getKolabMockServer ( ) : Horde_Kolab_Server | ||
Résultat | Horde_Kolab_Server | The server. |
public getKolabServer ( string $environment ) : Horde_Kolab_Server | ||
$environment | string | The name of the environment. |
Résultat | Horde_Kolab_Server | The server. |
public getKolabServers ( ) : array | ||
Résultat | array | The list of test servers. |
public groupLists ( ) : array | ||
Résultat | array | The array of groups. |
public initializeEnvironment ( string $environment ) : null | ||
$environment | string | The name of the environment. |
Résultat | null |
public initializeEnvironments ( ) : null | ||
Résultat | null |
public listObjectsOnServer ( array $type ) : array | ||
$type | array | The type of objects to list. |
Résultat | array | An array of objects. |
public prepareInjector ( string $environment ) : null | ||
$environment | string | The name of the environment. |
Résultat | null |
public prepareKolabServer ( string $environment ) : null | ||
$environment | string | The name of the environment. |
Résultat | null |
public prepareKolabServerConfiguration ( string $environment ) : null | ||
$environment | string | The name of the environment. |
Résultat | null |
public prepareLogger ( string $environment ) : null | ||
$environment | string | The name of the environment. |
Résultat | null |
public provideBasicAddress ( ) : array | ||
Résultat | array | The test address. |
public provideBasicAdmin ( ) : array | ||
Résultat | array | The test administrator. |
public provideBasicDomainMaintainer ( ) : array | ||
Résultat | array | The test domain maintainer. |
public provideBasicGroupOne ( ) : array | ||
Résultat | array | The test group. |
public provideBasicGroupTwo ( ) : array | ||
Résultat | array | The test group. |
public provideBasicMaintainer ( ) : array | ||
Résultat | array | The test maintainer. |
public provideBasicUserOne ( ) : array | ||
Résultat | array | The test user. |
public provideBasicUserTwo ( ) : array | ||
Résultat | array | The test user. |
public provideGroupWithoutMembers ( ) : array | ||
Résultat | array | The test group. |
public setEnvironments ( array $environments ) : null | ||
$environments | array | The selected environments. |
Résultat | null |
public validGroups ( ) : array | ||
Résultat | array | The array of groups. |
protected array $_environments | ||
Résultat | array |
public array $added | ||
Résultat | array |