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

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

Public Methods

Method Description
getParseHrefExpectationsMap ( )
testParse ( ) Tests the ContentTypeCreate parser.
testParseExceptionOnInvalidDescriptions ( ) Test ContentTypeCreate parser throwing exception on invalid descriptions.
testParseExceptionOnInvalidFieldDefinition ( ) Test ContentTypeCreate parser throwing exception on invalid FieldDefinitions.
testParseExceptionOnInvalidFieldDefinitions ( ) Test ContentTypeCreate parser throwing exception on invalid FieldDefinitions.
testParseExceptionOnInvalidNames ( ) Test ContentTypeCreate parser throwing exception on invalid names.
testParseExceptionOnInvalidUser ( ) Test ContentTypeCreate parser throwing exception on invalid User.
testParseExceptionOnMissingFieldDefinitions ( ) Test ContentTypeCreate parser throwing exception on invalid FieldDefinitions.
testParseExceptionOnMissingIdentifier ( ) Test ContentTypeCreate parser throwing exception on missing identifier.
testParseExceptionOnMissingMainLanguageCode ( ) Test ContentTypeCreate parser throwing exception on missing mainLanguageCode.

Protected Methods

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

Private Methods

Method Description
getFieldDefinitionCreateParserMock ( ) : FieldDefinitionCreate Returns the FieldDefinitionCreate parser mock object.

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

getInputArray() protected method

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

getParseHrefExpectationsMap() public method

internalGetParser() protected method

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

testParse() public method

Tests the ContentTypeCreate parser.
public testParse ( )

testParseExceptionOnInvalidDescriptions() public method

Test ContentTypeCreate parser throwing exception on invalid descriptions.

testParseExceptionOnInvalidFieldDefinition() public method

Test ContentTypeCreate parser throwing exception on invalid FieldDefinitions.

testParseExceptionOnInvalidFieldDefinitions() public method

Test ContentTypeCreate parser throwing exception on invalid FieldDefinitions.

testParseExceptionOnInvalidNames() public method

Test ContentTypeCreate parser throwing exception on invalid names.

testParseExceptionOnInvalidUser() public method

Test ContentTypeCreate parser throwing exception on invalid User.

testParseExceptionOnMissingFieldDefinitions() public method

Test ContentTypeCreate parser throwing exception on invalid FieldDefinitions.

testParseExceptionOnMissingIdentifier() public method

Test ContentTypeCreate parser throwing exception on missing identifier.

testParseExceptionOnMissingMainLanguageCode() public method

Test ContentTypeCreate parser throwing exception on missing mainLanguageCode.