Property | Type | Description | |
---|---|---|---|
$generator | Output generator. | ||
$requestParser | eZ\Publish\Core\REST\Common\RequestParser | ||
$visitorMock | Visitor mock. |
Method | Description | |
---|---|---|
addRouteExpectation ( string $routeName, array $arguments, string $returnValue ) | Adds an expectation to the routerMock. Expectations must be added sequentially. | |
addTemplatedRouteExpectation ( string $routeName, array $arguments, string $returnValue ) | Adds an expectation to the templatedRouterMock. Expectations must be added sequentially. | |
assertXPath ( DOMNode $domNode, string $xpathExpression ) | Asserts that the given $xpathExpression returns a non empty node set with $domNode as its context. | |
getGenerator ( ) : |
Gets the output generator. | |
getRequestParser ( ) : eZ\Publish\Core\REST\Common\RequestParser | PHPUnit_Framework_MockObject_MockObject | ||
getResponseMock ( ) : |
||
getRouterMock ( ) : Symfony\Component\Routing\RouterInterface | PHPUnit_Framework_MockObject_MockObject | ||
getTemplatedRouterMock ( ) : Symfony\Component\Routing\RouterInterface | PHPUnit_Framework_MockObject_MockObject | ||
getVisitor ( ) | ||
getVisitorMock ( ) : |
Gets the visitor mock. | |
internalGetVisitor ( ) : |
Must return an instance of the tested visitor object. | |
resetRouterMock ( ) | Resets the router mock and its expected calls index & list. |
protected assertXPath ( DOMNode $domNode, string $xpathExpression ) | ||
$domNode | DOMNode | |
$xpathExpression | string |
protected getGenerator ( ) : |
||
return |
protected getRequestParser ( ) : eZ\Publish\Core\REST\Common\RequestParser | PHPUnit_Framework_MockObject_MockObject | ||
return | eZ\Publish\Core\REST\Common\RequestParser | PHPUnit_Framework_MockObject_MockObject |
protected getResponseMock ( ) : |
||
return |
protected getRouterMock ( ) : Symfony\Component\Routing\RouterInterface | PHPUnit_Framework_MockObject_MockObject | ||
return | Symfony\Component\Routing\RouterInterface | PHPUnit_Framework_MockObject_MockObject |
protected getTemplatedRouterMock ( ) : Symfony\Component\Routing\RouterInterface | PHPUnit_Framework_MockObject_MockObject | ||
return | Symfony\Component\Routing\RouterInterface | PHPUnit_Framework_MockObject_MockObject |
protected getVisitorMock ( ) : |
||
return |
abstract protected internalGetVisitor ( ) : |
||
return |
protected resetRouterMock ( ) |
protected Xml,eZ\Publish\Core\REST\Common\Output\Generator $generator | ||
return |
protected RequestParser,eZ\Publish\Core\REST\Common $requestParser | ||
return | eZ\Publish\Core\REST\Common\RequestParser |