PHP Class eZ\Publish\Core\REST\Server\Tests\Output\ValueObjectVisitor\RestExecutedViewTest

Show file Open project: ezsystems/ezpublish-kernel

Public Methods

Method Description
getContentServiceMock ( ) : eZ\Publish\API\Repository\ContentService | PHPUnit_Framework_MockObject_MockObject
getContentTypeServiceMock ( ) : eZ\Publish\API\Repository\ContentTypeService | PHPUnit_Framework_MockObject_MockObject
getLocationServiceMock ( ) : eZ\Publish\API\Repository\LocationService | PHPUnit_Framework_MockObject_MockObject
provideXpathAssertions ( )
testGeneratedXml ( string $xpath, DOMDocument $dom )
testVisit ( ) : DOMDocument Test the RestExecutedView visitor.

Protected Methods

Method Description
buildContentSearchHit ( ) : eZ\Publish\API\Repository\Values\Content\Search\SearchHit
buildLocationSearchHit ( ) : eZ\Publish\API\Repository\Values\Content\Search\SearchHit
internalGetVisitor ( ) : RestExecutedView Get the Relation visitor.

Method Details

buildContentSearchHit() protected method

protected buildContentSearchHit ( ) : eZ\Publish\API\Repository\Values\Content\Search\SearchHit
return eZ\Publish\API\Repository\Values\Content\Search\SearchHit

buildLocationSearchHit() protected method

protected buildLocationSearchHit ( ) : eZ\Publish\API\Repository\Values\Content\Search\SearchHit
return eZ\Publish\API\Repository\Values\Content\Search\SearchHit

getContentServiceMock() public method

public getContentServiceMock ( ) : eZ\Publish\API\Repository\ContentService | PHPUnit_Framework_MockObject_MockObject
return eZ\Publish\API\Repository\ContentService | PHPUnit_Framework_MockObject_MockObject

getContentTypeServiceMock() public method

public getContentTypeServiceMock ( ) : eZ\Publish\API\Repository\ContentTypeService | PHPUnit_Framework_MockObject_MockObject
return eZ\Publish\API\Repository\ContentTypeService | PHPUnit_Framework_MockObject_MockObject

getLocationServiceMock() public method

public getLocationServiceMock ( ) : eZ\Publish\API\Repository\LocationService | PHPUnit_Framework_MockObject_MockObject
return eZ\Publish\API\Repository\LocationService | PHPUnit_Framework_MockObject_MockObject

internalGetVisitor() protected method

Get the Relation visitor.
protected internalGetVisitor ( ) : RestExecutedView
return eZ\Publish\Core\REST\Server\Output\ValueObjectVisitor\RestExecutedView

provideXpathAssertions() public method

testGeneratedXml() public method

public testGeneratedXml ( string $xpath, DOMDocument $dom )
$xpath string
$dom DOMDocument

testVisit() public method

Test the RestExecutedView visitor.
public testVisit ( ) : DOMDocument
return DOMDocument