eZPublishCommunityProject  2013.9
eZ\Publish\Core\REST\Client\IntegrationTestRepository Class Reference

REST Client Repository to be used in integration tests. More...

+ Inheritance diagram for eZ\Publish\Core\REST\Client\IntegrationTestRepository:
+ Collaboration diagram for eZ\Publish\Core\REST\Client\IntegrationTestRepository:

Public Member Functions

 __construct (HttpClient $client, Dispatcher $inputDispatcher, Visitor $outputVisitor, RequestParser $requestParser, array $fieldTypes, IntegrationTestAuthenticator $authenticator)
 Instantiates the REST Client repository. More...
 
 getCurrentUser ()
 Get current user. More...
 
 setCurrentUser (User $user)
 Sets the current user to the given $user. More...
 
 setSession ($id)
 Set session ID. More...
 
- Public Member Functions inherited from eZ\Publish\Core\REST\Client\Repository
 __construct (HttpClient $client, Common\Input\Dispatcher $inputDispatcher, Common\Output\Visitor $outputVisitor, Common\RequestParser $requestParser, array $fieldTypes)
 Instantiates the REST Client repository. More...
 
 beginTransaction ()
 Begin transaction. More...
 
 canUser ($module, $function, ValueObject $object, $targets=null)
 Indicates if the current user is allowed to perform an action given by the function on the given objects. More...
 
 commit ()
 Commit transaction. More...
 
 commitEvent ($event)
 Enqueue an event to be triggered at commit or directly if no transaction has started. More...
 
 getContentLanguageService ()
 Get Content Language Service. More...
 
 getContentService ()
 Get Content Service. More...
 
 getContentTypeService ()
 Get Content Type Service. More...
 
 getCurrentUser ()
 Get current user. More...
 
 getFieldTypeService ()
 Get FieldTypeService. More...
 
 getIOService ()
 Get IO Service. More...
 
 getLocationService ()
 Get Content Location Service. More...
 
 getObjectStateService ()
 Get ObjectStateService. More...
 
 getRoleService ()
 Get RoleService. More...
 
 getSearchService ()
 Get Search Service. More...
 
 getSectionService ()
 Get Content Section Service. More...
 
 getTrashService ()
 Get Content Trash service. More...
 
 getUrlAliasService ()
 Get URLAliasService. More...
 
 getURLWildcardService ()
 Get URLWildcardService. More...
 
 getUserService ()
 Get User Service. More...
 
 hasAccess ($module, $function, User $user=null)
 
 rollback ()
 Rollback transaction. More...
 
 setCurrentUser (User $user)
 Sets the current user to the given $user. More...
 
- Public Member Functions inherited from eZ\Publish\API\Repository\Repository
 getURLAliasService ()
 Get URLAliasService. More...
 

Private Attributes

 $authenticator
 
 $client
 
 $currentUser
 
 $session
 

Additional Inherited Members

- Protected Attributes inherited from eZ\Publish\Core\REST\Client\Repository
 $commitEventsQueue = array()
 
 $transactionDepth = 0
 

Detailed Description

REST Client Repository to be used in integration tests.

Note: NEVER USE THIS IN PRODUCTION!

See Also

Constructor & Destructor Documentation

eZ\Publish\Core\REST\Client\IntegrationTestRepository::__construct ( HttpClient  $client,
Dispatcher  $inputDispatcher,
Visitor  $outputVisitor,
RequestParser  $requestParser,
array  $fieldTypes,
IntegrationTestAuthenticator  $authenticator 
)

Instantiates the REST Client repository.

Parameters
\eZ\Publish\Core\REST\Client\HttpClient$client
\eZ\Publish\Core\REST\Common\Input\Dispatcher$inputDispatcher
\eZ\Publish\Core\REST\Common\Output\Visitor$outputVisitor
\eZ\Publish\SPI\FieldType\FieldType[]$fieldTypes
\eZ\Publish\Core\REST\Client\HttpClient\Authentication\IntegrationTestAuthentication$authenticator

Member Function Documentation

eZ\Publish\Core\REST\Client\IntegrationTestRepository::getCurrentUser ( )

Get current user.

Returns

Implements eZ\Publish\API\Repository\Repository.

eZ\Publish\Core\REST\Client\IntegrationTestRepository::setCurrentUser ( User  $user)

Sets the current user to the given $user.

Parameters
\eZ\Publish\API\Repository\Values\User\User$user
Returns
void

Implements eZ\Publish\API\Repository\Repository.

eZ\Publish\Core\REST\Client\IntegrationTestRepository::setSession (   $id)

Set session ID.

Only for testing

Parameters
mixedtringid
Returns
void

Implements eZ\Publish\Core\REST\Client\Sessionable.

Member Data Documentation

eZ\Publish\Core\REST\Client\IntegrationTestRepository::$authenticator
private
eZ\Publish\Core\REST\Client\IntegrationTestRepository::$client
private
eZ\Publish\Core\REST\Client\IntegrationTestRepository::$currentUser
private
eZ\Publish\Core\REST\Client\IntegrationTestRepository::$session
private

The documentation for this class was generated from the following file: