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

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

Public Methods

Method Description
getParseHrefExpectationsMap ( )
testParse ( ) Tests the FieldDefinitionUpdate parser.
testParseExceptionOnInvalidDescriptions ( ) Test FieldDefinitionUpdate parser throwing exception on invalid descriptions.
testParseExceptionOnInvalidNames ( ) Test FieldDefinitionUpdate parser throwing exception on invalid names.

Protected Methods

Method Description
getContentTypeServiceMock ( ) : eZ\Publish\API\Repository\ContentTypeService Get the content type service mock object.
getFieldTypeParserMock ( ) : FieldTypeParser Get the FieldTypeParser mock object.
getInputArray ( ) : array Returns the array under test.
internalGetParser ( ) : FieldDefinitionUpdate Returns the FieldDefinitionUpdate parser.

Method Details

getContentTypeServiceMock() protected method

Get the content type service mock object.
protected getContentTypeServiceMock ( ) : eZ\Publish\API\Repository\ContentTypeService
return eZ\Publish\API\Repository\ContentTypeService

getFieldTypeParserMock() protected method

Get the FieldTypeParser mock object.
protected getFieldTypeParserMock ( ) : FieldTypeParser
return eZ\Publish\Core\REST\Common\Input\FieldTypeParser

getInputArray() protected method

Returns the array under test.
protected getInputArray ( ) : array
return array

getParseHrefExpectationsMap() public method

internalGetParser() protected method

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

testParse() public method

Tests the FieldDefinitionUpdate parser.
public testParse ( )

testParseExceptionOnInvalidDescriptions() public method

Test FieldDefinitionUpdate parser throwing exception on invalid descriptions.

testParseExceptionOnInvalidNames() public method

Test FieldDefinitionUpdate parser throwing exception on invalid names.