Method | Description | |
---|---|---|
testService ( $method, $parameters, $return, $emitNr, $signalClass = '', array $signalAttr = null ) |
Method | Description | |
---|---|---|
getContent ( |
Creates a content object from $versionInfo. | |
getContentInfo ( mixed $contentId, mixed $remoteId ) : eZ\Publish\API\Repository\Values\Content\ContentInfo | Creates a content info from $contentId and $remoteId. | |
getServiceMock ( ) | Returns a mock of the aggregated service. | |
getSignalSlotService ( mixed $innerService, |
Returns an instance of the SignalSlot service to test. | |
getUser ( mixed $userId, mixed $userRemoteId, integer $userVersionNo ) : |
Creates a User object from $userId, $userRemoteId and $userVersionNo. | |
getUserGroup ( mixed $groupId, mixed $groupRemoteId, integer $groupVersioNo ) : |
Returns a new UserGroup. | |
getVersionInfo ( eZ\Publish\API\Repository\Values\Content\ContentInfo $contentInfo, integer $versionNo ) : eZ\Publish\API\Repository\Values\Content\VersionInfo | Creates a version info object from $contentInfo and $versionNo. |
protected getContent ( |
||
$versionInfo | ||
return | eZ\Publish\API\Repository\Values\Content\Content |
protected getContentInfo ( mixed $contentId, mixed $remoteId ) : eZ\Publish\API\Repository\Values\Content\ContentInfo | ||
$contentId | mixed | |
$remoteId | mixed | |
return | eZ\Publish\API\Repository\Values\Content\ContentInfo |
abstract protected getServiceMock ( ) |
abstract protected getSignalSlotService ( mixed $innerService, |
||
$innerService | mixed | mock of the inner service used by the signal slot one used to test whether the original method is called is correctly called. |
$dispatcher | mock of the dispatcher used to test whether the emit method is correctly called | |
return | object | An instance of the SignalSlot service |
protected getVersionInfo ( eZ\Publish\API\Repository\Values\Content\ContentInfo $contentInfo, integer $versionNo ) : eZ\Publish\API\Repository\Values\Content\VersionInfo | ||
$contentInfo | eZ\Publish\API\Repository\Values\Content\ContentInfo | |
$versionNo | integer | |
return | eZ\Publish\API\Repository\Values\Content\VersionInfo |
public testService ( $method, $parameters, $return, $emitNr, $signalClass = '', array $signalAttr = null ) | ||
$signalAttr | array |