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

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

Public Methods

Method Description
getParseHrefExpectationsMap ( )
testParse ( ) Tests the VersionUpdate parser.
testParseExceptionOnInvalidFields ( ) Test VersionUpdate parser throwing exception on invalid fields data.
testParseExceptionOnMissingFieldDefinitionIdentifier ( ) Test VersionUpdate parser throwing exception on missing field definition identifier.
testParseExceptionOnMissingFieldValue ( ) Test VersionUpdate parser throwing exception on missing field value.

Protected Methods

Method Description
getContentServiceMock ( ) : eZ\Publish\API\Repository\ContentService Get the Content service mock object.
internalGetParser ( ) : VersionUpdate Returns the VersionUpdate parser.

Private Methods

Method Description
getFieldTypeParserMock ( ) : eZ\Publish\Core\REST\Common\Input\FieldTypeParser; Get the field type parser mock object.

Method Details

getContentServiceMock() protected method

Get the Content service mock object.
protected getContentServiceMock ( ) : eZ\Publish\API\Repository\ContentService
return eZ\Publish\API\Repository\ContentService

getParseHrefExpectationsMap() public method

internalGetParser() protected method

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

testParse() public method

Tests the VersionUpdate parser.
public testParse ( )

testParseExceptionOnInvalidFields() public method

Test VersionUpdate parser throwing exception on invalid fields data.

testParseExceptionOnMissingFieldDefinitionIdentifier() public method

Test VersionUpdate parser throwing exception on missing field definition identifier.

testParseExceptionOnMissingFieldValue() public method

Test VersionUpdate parser throwing exception on missing field value.