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

Inheritance: extends BaseTest
Afficher le fichier Open project: ezsystems/ezpublish-kernel

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
getRoleServiceMock ( ) : eZ\Publish\API\Repository\RoleService Get the role service mock object.
internalGetParser ( ) : PolicyCreate Returns the PolicyCreateStruct parser.

Method Details

getRoleServiceMock() protected méthode

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

internalGetParser() protected méthode

Returns the PolicyCreateStruct parser.
protected internalGetParser ( ) : PolicyCreate
Résultat eZ\Publish\Core\REST\Server\Input\Parser\PolicyCreate

testParse() public méthode

Tests the PolicyCreate parser.
public testParse ( )

testParseExceptionOnMissingFunction() public méthode

Test PolicyCreate parser throwing exception on missing function.

testParseExceptionOnMissingLimitationIdentifier() public méthode

Test PolicyCreate parser throwing exception on missing identifier.

testParseExceptionOnMissingLimitationValues() public méthode

Test PolicyCreate parser throwing exception on missing values.

testParseExceptionOnMissingModule() public méthode

Test PolicyCreate parser throwing exception on missing module.