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

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

Public Methods

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

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

getInputArray() protected method

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

getParseHrefExpectationsMap() public method

internalGetParser() protected method

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

testParse() public method

Tests the ContentTypeUpdate parser.
public testParse ( )

testParseExceptionOnInvalidDescriptions() public method

Test ContentTypeUpdate parser throwing exception on invalid descriptions.

testParseExceptionOnInvalidNames() public method

Test ContentTypeUpdate parser throwing exception on invalid names.

testParseExceptionOnInvalidUser() public method

Test ContentTypeUpdate parser throwing exception on invalid User.