PHP Class eZ\Publish\Core\REST\Server\Tests\Input\Parser\BaseTest

Inheritance: extends eZ\Publish\Core\REST\Server\Tests\BaseTest
Show file Open project: ezsystems/ezpublish-kernel

Protected Properties

Property Type Description
$parserTools eZ\Publish\Core\REST\Common\Input\ParserTools
$parsingDispatcherMock eZ\Publish\Core\REST\Common\Input\ParsingDispatcher | PHPUnit_Framework_MockObject_MockObject
$requestParserMock eZ\Publish\Core\REST\Common\RequestParser | PHPUnit_Framework_MockObject_MockObject

Public Methods

Method Description
getParseHrefExpectationsMap ( ) : array Returns the parseHref invocation expectations, as an array of: 0. route to parse the href from (/content/objects/59 1. attribute name we are looking for (contentId) 2. expected return value (59)*.

Protected Methods

Method Description
getParser ( )
getParserTools ( ) : ParserTools Get the parser tools.
getParsingDispatcherMock ( ) : ParsingDispatcher Get the parsing dispatcher.
getRequestParserMock ( ) : eZ\Publish\Core\REST\Common\RequestParser | PHPUnit_Framework_MockObject_MockObject Get the Request parser.
internalGetParser ( ) : eZ\Publish\Core\REST\Server\Input\Parser\Base Must return the tested parser object.

Method Details

getParseHrefExpectationsMap() public method

Returns the parseHref invocation expectations, as an array of: 0. route to parse the href from (/content/objects/59 1. attribute name we are looking for (contentId) 2. expected return value (59)*.

getParser() protected method

protected getParser ( )

getParserTools() protected method

Get the parser tools.
protected getParserTools ( ) : ParserTools
return eZ\Publish\Core\REST\Common\Input\ParserTools

getParsingDispatcherMock() protected method

Get the parsing dispatcher.
protected getParsingDispatcherMock ( ) : ParsingDispatcher
return eZ\Publish\Core\REST\Common\Input\ParsingDispatcher

getRequestParserMock() protected method

Get the Request parser.
protected getRequestParserMock ( ) : eZ\Publish\Core\REST\Common\RequestParser | PHPUnit_Framework_MockObject_MockObject
return eZ\Publish\Core\REST\Common\RequestParser | PHPUnit_Framework_MockObject_MockObject

internalGetParser() abstract protected method

Must return the tested parser object.
abstract protected internalGetParser ( ) : eZ\Publish\Core\REST\Server\Input\Parser\Base
return eZ\Publish\Core\REST\Server\Input\Parser\Base

Property Details

$parserTools protected property

protected ParserTools,eZ\Publish\Core\REST\Common\Input $parserTools
return eZ\Publish\Core\REST\Common\Input\ParserTools

$parsingDispatcherMock protected property

protected ParsingDispatcher,eZ\Publish\Core\REST\Common\Input|PHPUnit_Framework_MockObject_MockObject $parsingDispatcherMock
return eZ\Publish\Core\REST\Common\Input\ParsingDispatcher | PHPUnit_Framework_MockObject_MockObject

$requestParserMock protected property

protected RequestParser,eZ\Publish\Core\REST\Common|PHPUnit_Framework_MockObject_MockObject $requestParserMock
return eZ\Publish\Core\REST\Common\RequestParser | PHPUnit_Framework_MockObject_MockObject