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

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

Public Methods

Method Description
getParseHrefExpectationsMap ( )
testParse ( ) Tests the UserGroupCreate parser.
testParseExceptionOnInvalidContentType ( ) Test UserGroupCreate parser throwing exception on invalid ContentType.
testParseExceptionOnInvalidFieldDefinitionIdentifier ( ) Test UserGroupCreate parser throwing exception on invalid field definition identifier.
testParseExceptionOnInvalidFields ( ) Test UserGroupCreate parser throwing exception on invalid fields data.
testParseExceptionOnInvalidSection ( ) Test UserGroupCreate parser throwing exception on invalid Section.
testParseExceptionOnMissingFieldDefinitionIdentifier ( ) Test UserGroupCreate parser throwing exception on missing field definition identifier.
testParseExceptionOnMissingFieldValue ( ) Test UserGroupCreate parser throwing exception on missing field value.
testParseExceptionOnMissingMainLanguageCode ( ) Test UserGroupCreate parser throwing exception on missing mainLanguageCode.

Protected Methods

Method Description
getContentType ( ) : eZ\Publish\API\Repository\Values\ContentType\ContentType Get the content type used in UserGroupCreate parser.
getContentTypeServiceMock ( ) : eZ\Publish\API\Repository\ContentTypeService Get the content type service mock object.
getUserServiceMock ( ) : eZ\Publish\API\Repository\UserService Get the user service mock object.
internalGetParser ( ) : UserGroupCreate Returns the UserGroupCreate parser.

Private Methods

Method Description
getFieldTypeParserMock ( ) : eZ\Publish\Core\REST\Common\Input\FieldTypeParser; Get the field type parser mock object.

Method Details

getContentType() protected method

Get the content type used in UserGroupCreate parser.
protected getContentType ( ) : eZ\Publish\API\Repository\Values\ContentType\ContentType
return eZ\Publish\API\Repository\Values\ContentType\ContentType

getContentTypeServiceMock() protected method

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

getParseHrefExpectationsMap() public method

getUserServiceMock() protected method

Get the user service mock object.
protected getUserServiceMock ( ) : eZ\Publish\API\Repository\UserService
return eZ\Publish\API\Repository\UserService

internalGetParser() protected method

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

testParse() public method

Tests the UserGroupCreate parser.
public testParse ( )

testParseExceptionOnInvalidContentType() public method

Test UserGroupCreate parser throwing exception on invalid ContentType.

testParseExceptionOnInvalidFieldDefinitionIdentifier() public method

Test UserGroupCreate parser throwing exception on invalid field definition identifier.

testParseExceptionOnInvalidFields() public method

Test UserGroupCreate parser throwing exception on invalid fields data.

testParseExceptionOnInvalidSection() public method

Test UserGroupCreate parser throwing exception on invalid Section.

testParseExceptionOnMissingFieldDefinitionIdentifier() public method

Test UserGroupCreate parser throwing exception on missing field definition identifier.

testParseExceptionOnMissingFieldValue() public method

Test UserGroupCreate parser throwing exception on missing field value.

testParseExceptionOnMissingMainLanguageCode() public method

Test UserGroupCreate parser throwing exception on missing mainLanguageCode.