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

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

Public Methods

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

Protected Methods

Method Description
getObjectStateServiceMock ( ) : eZ\Publish\API\Repository\ObjectStateService Get the object state service mock object.
internalGetParser ( ) : ObjectStateCreate Returns the ObjectStateCreate 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 ObjectStateCreate parser.
protected internalGetParser ( ) : ObjectStateCreate
return eZ\Publish\Core\REST\Server\Input\Parser\ObjectStateCreate

testParse() public method

Tests the ObjectStateCreate parser.
public testParse ( )

testParseExceptionOnInvalidNames() public method

Test ObjectStateCreate parser throwing exception on invalid names structure.

testParseExceptionOnMissingDefaultLanguageCode() public method

Test ObjectStateCreate parser throwing exception on missing defaultLanguageCode.

testParseExceptionOnMissingIdentifier() public method

Test ObjectStateCreate parser throwing exception on missing identifier.

testParseExceptionOnMissingNames() public method

Test ObjectStateCreate parser throwing exception on missing names.

testParseExceptionOnMissingPriority() public method

Test ObjectStateCreate parser throwing exception on missing priority.