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

Inheritance: extends BaseTest
Show file Open project: ezsystems/ezpublish-kernel

Public Methods

Method Description
getParseHrefExpectationsMap ( )
testParse ( ) Tests the LocationCreate parser.
testParseExceptionOnMissingHrefAttribute ( ) Test LocationCreate parser throwing exception on missing _href attribute for ParentLocation.
testParseExceptionOnMissingParentLocation ( ) Test LocationCreate parser throwing exception on missing ParentLocation.
testParseExceptionOnMissingSortField ( ) Test LocationCreate parser throwing exception on missing sort field.
testParseExceptionOnMissingSortOrder ( ) Test LocationCreate parser throwing exception on missing sort order.

Protected Methods

Method Description
getLocationServiceMock ( ) : eZ\Publish\API\Repository\LocationService Get the location service mock object.
internalGetParser ( ) : LocationCreate Returns the LocationCreateStruct parser.

Method Details

getLocationServiceMock() protected method

Get the location service mock object.
protected getLocationServiceMock ( ) : eZ\Publish\API\Repository\LocationService
return eZ\Publish\API\Repository\LocationService

getParseHrefExpectationsMap() public method

internalGetParser() protected method

Returns the LocationCreateStruct parser.
protected internalGetParser ( ) : LocationCreate
return eZ\Publish\Core\REST\Server\Input\Parser\LocationCreate

testParse() public method

Tests the LocationCreate parser.
public testParse ( )

testParseExceptionOnMissingHrefAttribute() public method

Test LocationCreate parser throwing exception on missing _href attribute for ParentLocation.

testParseExceptionOnMissingParentLocation() public method

Test LocationCreate parser throwing exception on missing ParentLocation.

testParseExceptionOnMissingSortField() public method

Test LocationCreate parser throwing exception on missing sort field.

testParseExceptionOnMissingSortOrder() public method

Test LocationCreate parser throwing exception on missing sort order.