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

Inheritance: extends BaseTest
Afficher le fichier Open project: ezsystems/ezpublish-kernel

Méthodes publiques

Méthode 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.

Méthodes protégées

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

Method Details

getLocationServiceMock() protected méthode

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

getParseHrefExpectationsMap() public méthode

internalGetParser() protected méthode

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

testParse() public méthode

Tests the LocationCreate parser.
public testParse ( )

testParseExceptionOnMissingHrefAttribute() public méthode

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

testParseExceptionOnMissingParentLocation() public méthode

Test LocationCreate parser throwing exception on missing ParentLocation.

testParseExceptionOnMissingSortField() public méthode

Test LocationCreate parser throwing exception on missing sort field.

testParseExceptionOnMissingSortOrder() public méthode

Test LocationCreate parser throwing exception on missing sort order.