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

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

Public Methods

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

Protected Methods

Method Description
getContentServiceMock ( ) : eZ\Publish\API\Repository\ContentService Get the Content service mock object.
getUserServiceMock ( ) : eZ\Publish\API\Repository\UserService Get the user service mock object.
internalGetParser ( ) : UserUpdate Returns the UserUpdate 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

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

testParse() public method

Tests the UserUpdate parser.
public testParse ( )

testParseExceptionOnInvalidFields() public method

Test UserUpdate parser throwing exception on invalid fields data.

testParseExceptionOnMissingFieldDefinitionIdentifier() public method

Test UserUpdate parser throwing exception on missing field definition identifier.

testParseExceptionOnMissingFieldValue() public method

Test UserUpdate parser throwing exception on missing field value.

testParseExceptionOnMissingSectionHref() public method

Test UserUpdate parser throwing exception on missing Section href.