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

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

Public Methods

Method Description
testParse ( ) Tests the FieldDefinitionCreate parser.
testParseExceptionOnInvalidDescriptions ( ) Test FieldDefinitionCreate parser throwing exception on invalid descriptions.
testParseExceptionOnInvalidNames ( ) Test FieldDefinitionCreate parser throwing exception on invalid names.
testParseExceptionOnMissingFieldType ( ) Test FieldDefinitionCreate parser throwing exception on missing fieldType.
testParseExceptionOnMissingIdentifier ( ) Test FieldDefinitionCreate parser throwing exception on missing identifier.

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 ( ) : FieldDefinitionCreate Returns the FieldDefinitionCreate 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

internalGetParser() protected method

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

testParse() public method

Tests the FieldDefinitionCreate parser.
public testParse ( )

testParseExceptionOnInvalidDescriptions() public method

Test FieldDefinitionCreate parser throwing exception on invalid descriptions.

testParseExceptionOnInvalidNames() public method

Test FieldDefinitionCreate parser throwing exception on invalid names.

testParseExceptionOnMissingFieldType() public method

Test FieldDefinitionCreate parser throwing exception on missing fieldType.

testParseExceptionOnMissingIdentifier() public method

Test FieldDefinitionCreate parser throwing exception on missing identifier.