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

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

Méthodes publiques

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

Méthodes protégées

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

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

getFieldTypeParserMock() protected méthode

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

getInputArray() protected méthode

Returns the array under test.
protected getInputArray ( ) : array
Résultat array

getParseHrefExpectationsMap() public méthode

internalGetParser() protected méthode

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

testParse() public méthode

Tests the FieldDefinitionUpdate parser.
public testParse ( )

testParseExceptionOnInvalidDescriptions() public méthode

Test FieldDefinitionUpdate parser throwing exception on invalid descriptions.

testParseExceptionOnInvalidNames() public méthode

Test FieldDefinitionUpdate parser throwing exception on invalid names.