PHP 클래스 Horde_Kolab_Server_Integration_Scenario, horde

Copyright 2008-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
상속: extends PHPUnit_Extensions_Story_TestCase
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$added array Uid of added objects. Should be removed on tearDown.

보호된 프로퍼티들

프로퍼티 타입 설명
$_environments array The environments we provide to the test.

공개 메소드들

메소드 설명
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 ( )

보호된 메소드들

메소드 설명
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.

메소드 상세

addBasicUsersToServer() 공개 메소드

Fill a Kolab Server with test users.
public addBasicUsersToServer ( Horde_Kolab_Server $server ) : null
$server Horde_Kolab_Server The server to fill.
리턴 null

addToServer() 공개 메소드

Add an object to a server and remember it for the tear down method.
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.
리턴 Horde_Kolab_Server_Object The resulting object.

addToServers() 공개 메소드

Add an object to the registered servers.
public addToServers ( array $object ) : array
$object array The object data to store.
리턴 array An array of objects.

assertAdd() 보호된 메소드

Assert that creating a new object operation yields some predictable attribute results.
protected assertAdd ( Horde_Kolab_Server $server, array $store, array $fetch ) : NULL.
$server Horde_Kolab_Server The server the object resides on.
$store array The information to save.
$fetch array The expected results.
리턴 NULL.

assertEasyAttributes() 공개 메소드

Test easy attributes.
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
리턴 null

assertError() 공개 메소드

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.
public assertError ( mixed $var, string $msg = null ) : NULL.
$var mixed The variable to check.
$msg string The expected error message.
리턴 NULL.

assertNoError() 공개 메소드

Ensure that the variable contains no Horde_Kolab_Server_Exception and fail if it does.
public assertNoError ( mixed $var ) : NULL.
$var mixed The variable to check.
리턴 NULL.

assertRecursiveType() 공개 메소드

public assertRecursiveType ( $results, $type )

assertSimpleAttributes() 공개 메소드

Test simple attributes.
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
리턴 null

assertSimpleSequence() 보호된 메소드

Assert that a save() operation yields some predictable attribute results.
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.
리턴 NULL.

assertStoreFetch() 보호된 메소드

Assert that a save() operation yields some predictable attribute results.
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.
리턴 NULL.

fetchByCn() 보호된 메소드

protected fetchByCn ( $server, $cn )

getEnvironments() 공개 메소드

Identify the environments we want to run our tests in.
public getEnvironments ( ) : array
리턴 array The selected environments.

getKolabMockServer() 공개 메소드

Shortcut to get a Kolab mock server.
public getKolabMockServer ( ) : Horde_Kolab_Server
리턴 Horde_Kolab_Server The server.

getKolabServer() 공개 메소드

Get a server from a specific environment.
public getKolabServer ( string $environment ) : Horde_Kolab_Server
$environment string The name of the environment.
리턴 Horde_Kolab_Server The server.

getKolabServers() 공개 메소드

Retrieves the available servers. This assumes all environments have been initialied.
public getKolabServers ( ) : array
리턴 array The list of test servers.

groupLists() 공개 메소드

Provide a set of valid groups.
public groupLists ( ) : array
리턴 array The array of groups.

initializeEnvironment() 공개 메소드

Initialize the given environment.
public initializeEnvironment ( string $environment ) : null
$environment string The name of the environment.
리턴 null

initializeEnvironments() 공개 메소드

Initialize the environments.
public initializeEnvironments ( ) : null
리턴 null

invalidMails() 공개 메소드

public invalidMails ( )

largeList() 공개 메소드

public largeList ( )

listObjectsOnServer() 공개 메소드

List objects on the registered servers.
public listObjectsOnServer ( array $type ) : array
$type array The type of objects to list.
리턴 array An array of objects.

prepareInjector() 공개 메소드

Prepare an injector for the given environment.
public prepareInjector ( string $environment ) : null
$environment string The name of the environment.
리턴 null

prepareKolabServer() 공개 메소드

Prepare the server for the given environment.
public prepareKolabServer ( string $environment ) : null
$environment string The name of the environment.
리턴 null

prepareKolabServerConfiguration() 공개 메소드

Prepare the server configuration for the given environment.
public prepareKolabServerConfiguration ( string $environment ) : null
$environment string The name of the environment.
리턴 null

prepareLogger() 공개 메소드

Prepare the log handler for the given environment.
public prepareLogger ( string $environment ) : null
$environment string The name of the environment.
리턴 null

provideBasicAddress() 공개 메소드

Return a test address.
public provideBasicAddress ( ) : array
리턴 array The test address.

provideBasicAdmin() 공개 메소드

Return a test administrator.
public provideBasicAdmin ( ) : array
리턴 array The test administrator.

provideBasicDomainMaintainer() 공개 메소드

Return a test domain maintainer.
public provideBasicDomainMaintainer ( ) : array
리턴 array The test domain maintainer.

provideBasicGroupOne() 공개 메소드

Return a test group.
public provideBasicGroupOne ( ) : array
리턴 array The test group.

provideBasicGroupTwo() 공개 메소드

Return a test group.
public provideBasicGroupTwo ( ) : array
리턴 array The test group.

provideBasicMaintainer() 공개 메소드

Return a test maintainer.
public provideBasicMaintainer ( ) : array
리턴 array The test maintainer.

provideBasicSharedFolder() 공개 메소드

Return a test shared folder.
public provideBasicSharedFolder ( ) : array
리턴 array The test shared folder.

provideBasicUserOne() 공개 메소드

Return a test user.
public provideBasicUserOne ( ) : array
리턴 array The test user.

provideBasicUserTwo() 공개 메소드

Return a test user.
public provideBasicUserTwo ( ) : array
리턴 array The test user.

provideDistributionList() 공개 메소드

provideGroupWithoutMembers() 공개 메소드

Return a test group.
public provideGroupWithoutMembers ( ) : array
리턴 array The test group.

provideInvalidUserWithoutGivenName() 공개 메소드

provideInvalidUserWithoutLastName() 공개 메소드

provideInvalidUserWithoutMail() 공개 메소드

provideInvalidUserWithoutPassword() 공개 메소드

provideInvalidUsers() 공개 메소드

public provideInvalidUsers ( )

runGiven() 공개 메소드

Handle a "given" step.
public runGiven ( &$world, string $action, array $arguments ) : mixed
$action string The description of the step.
$arguments array Additional arguments to the step.
리턴 mixed The outcome of the step.

runThen() 공개 메소드

Handle a "then" step.
public runThen ( &$world, string $action, array $arguments ) : mixed
$action string The description of the step.
$arguments array Additional arguments to the step.
리턴 mixed The outcome of the step.

runWhen() 공개 메소드

Handle a "when" step.
public runWhen ( &$world, string $action, array $arguments ) : mixed
$action string The description of the step.
$arguments array Additional arguments to the step.
리턴 mixed The outcome of the step.

setEnvironments() 공개 메소드

Specifically set the environments we wish to support.
public setEnvironments ( array $environments ) : null
$environments array The selected environments.
리턴 null

setUp() 보호된 메소드

Setup function.
protected setUp ( ) : NULL.
리턴 NULL.

tearDown() 보호된 메소드

Cleanup function.
protected tearDown ( ) : NULL.
리턴 NULL.

userAdd() 공개 메소드

public userAdd ( )

userListByAttribute() 공개 메소드

public userListByAttribute ( )

userListByLetter() 공개 메소드

public userListByLetter ( )

userLists() 공개 메소드

public userLists ( )

validAddresses() 공개 메소드

public validAddresses ( )

validAdmins() 공개 메소드

public validAdmins ( )

validDomainMaintainers() 공개 메소드

validGroups() 공개 메소드

Provide a set of valid groups.
public validGroups ( ) : array
리턴 array The array of groups.

validMaintainers() 공개 메소드

public validMaintainers ( )

validSharedFolders() 공개 메소드

public validSharedFolders ( )

validUsers() 공개 메소드

public validUsers ( )

프로퍼티 상세

$_environments 보호되어 있는 프로퍼티

The environments we provide to the test.
protected array $_environments
리턴 array

$added 공개적으로 프로퍼티

Uid of added objects. Should be removed on tearDown.
public array $added
리턴 array