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

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

Public Methods

Method Description
testParse ( ) Tests the ObjectStateGroupCreate parser.
testParseExceptionOnInvalidNames ( ) Test ObjectStateGroupCreate parser throwing exception on invalid names structure.
testParseExceptionOnMissingDefaultLanguageCode ( ) Test ObjectStateGroupCreate parser throwing exception on missing defaultLanguageCode.
testParseExceptionOnMissingIdentifier ( ) Test ObjectStateGroupCreate parser throwing exception on missing identifier.
testParseExceptionOnMissingNames ( ) Test ObjectStateGroupCreate parser throwing exception on missing names.

Protected Methods

Method Description
getObjectStateServiceMock ( ) : eZ\Publish\API\Repository\ObjectStateService Get the object state service mock object.
internalGetParser ( ) : ObjectStateGroupCreate Returns the ObjectStateGroupCreate parser.

Method Details

getObjectStateServiceMock() protected method

Get the object state service mock object.
protected getObjectStateServiceMock ( ) : eZ\Publish\API\Repository\ObjectStateService
return eZ\Publish\API\Repository\ObjectStateService

internalGetParser() protected method

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

testParse() public method

Tests the ObjectStateGroupCreate parser.
public testParse ( )

testParseExceptionOnInvalidNames() public method

Test ObjectStateGroupCreate parser throwing exception on invalid names structure.

testParseExceptionOnMissingDefaultLanguageCode() public method

Test ObjectStateGroupCreate parser throwing exception on missing defaultLanguageCode.

testParseExceptionOnMissingIdentifier() public method

Test ObjectStateGroupCreate parser throwing exception on missing identifier.

testParseExceptionOnMissingNames() public method

Test ObjectStateGroupCreate parser throwing exception on missing names.