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

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

Public Methods

Method Description
testParse ( ) Tests the PolicyCreate parser.
testParseExceptionOnMissingFunction ( ) Test PolicyCreate parser throwing exception on missing function.
testParseExceptionOnMissingLimitationIdentifier ( ) Test PolicyCreate parser throwing exception on missing identifier.
testParseExceptionOnMissingLimitationValues ( ) Test PolicyCreate parser throwing exception on missing values.
testParseExceptionOnMissingModule ( ) Test PolicyCreate parser throwing exception on missing module.

Protected Methods

Method Description
getRoleServiceMock ( ) : eZ\Publish\API\Repository\RoleService Get the role service mock object.
internalGetParser ( ) : PolicyCreate Returns the PolicyCreateStruct 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 PolicyCreateStruct parser.
protected internalGetParser ( ) : PolicyCreate
return eZ\Publish\Core\REST\Server\Input\Parser\PolicyCreate

testParse() public method

Tests the PolicyCreate parser.
public testParse ( )

testParseExceptionOnMissingFunction() public method

Test PolicyCreate parser throwing exception on missing function.

testParseExceptionOnMissingLimitationIdentifier() public method

Test PolicyCreate parser throwing exception on missing identifier.

testParseExceptionOnMissingLimitationValues() public method

Test PolicyCreate parser throwing exception on missing values.

testParseExceptionOnMissingModule() public method

Test PolicyCreate parser throwing exception on missing module.