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

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

Public Methods

Method Description
testParse ( ) Tests the PolicyUpdate parser.
testParseExceptionOnMissingLimitationIdentifier ( ) Test PolicyUpdate parser throwing exception on missing identifier.
testParseExceptionOnMissingLimitationValues ( ) Test PolicyUpdate parser throwing exception on missing values.

Protected Methods

Method Description
getRoleServiceMock ( ) : eZ\Publish\API\Repository\RoleService Get the role service mock object.
internalGetParser ( ) : PolicyUpdate Returns the PolicyUpdateStruct parser.

Method Details

getRoleServiceMock() protected method

Get the role service mock object.
protected getRoleServiceMock ( ) : eZ\Publish\API\Repository\RoleService
return eZ\Publish\API\Repository\RoleService

internalGetParser() protected method

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

testParse() public method

Tests the PolicyUpdate parser.
public testParse ( )

testParseExceptionOnMissingLimitationIdentifier() public method

Test PolicyUpdate parser throwing exception on missing identifier.

testParseExceptionOnMissingLimitationValues() public method

Test PolicyUpdate parser throwing exception on missing values.