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

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

Public Methods

Method Description
getParseHrefExpectationsMap ( )
testParse ( ) Tests the UserGroupUpdate parser.
testParseExceptionOnInvalidFields ( ) Test UserGroupUpdate parser throwing exception on invalid fields data.
testParseExceptionOnMissingFieldDefinitionIdentifier ( ) Test UserGroupUpdate parser throwing exception on missing field definition identifier.
testParseExceptionOnMissingFieldValue ( ) Test UserGroupUpdate parser throwing exception on missing field value.
testParseExceptionOnMissingSectionHref ( ) Test UserGroupUpdate parser throwing exception on missing Section href.

Protected Methods

Method Description
getContentServiceMock ( ) : eZ\Publish\API\Repository\ContentService Get the content service mock object.
getLocationServiceMock ( ) : eZ\Publish\API\Repository\LocationService Get the location service mock object.
getUserServiceMock ( ) : eZ\Publish\API\Repository\UserService Get the user service mock object.
internalGetParser ( ) : UserGroupUpdate Returns the UserGroupUpdate parser.

Private Methods

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

Method Details

getContentServiceMock() protected method

Get the content service mock object.
protected getContentServiceMock ( ) : eZ\Publish\API\Repository\ContentService
return eZ\Publish\API\Repository\ContentService

getLocationServiceMock() protected method

Get the location service mock object.
protected getLocationServiceMock ( ) : eZ\Publish\API\Repository\LocationService
return eZ\Publish\API\Repository\LocationService

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 UserGroupUpdate parser.
protected internalGetParser ( ) : UserGroupUpdate
return eZ\Publish\Core\REST\Server\Input\Parser\UserGroupUpdate

testParse() public method

Tests the UserGroupUpdate parser.
public testParse ( )

testParseExceptionOnInvalidFields() public method

Test UserGroupUpdate parser throwing exception on invalid fields data.

testParseExceptionOnMissingFieldDefinitionIdentifier() public method

Test UserGroupUpdate parser throwing exception on missing field definition identifier.

testParseExceptionOnMissingFieldValue() public method

Test UserGroupUpdate parser throwing exception on missing field value.

testParseExceptionOnMissingSectionHref() public method

Test UserGroupUpdate parser throwing exception on missing Section href.