PHP Class eZ\Publish\Core\REST\Client\Tests\Input\Parser\RoleTest

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

Public Methods

Method Description
testParse ( ) : eZ\Publish\API\Repository\Values\User\Role Tests the role parser.
testResultContainsId ( eZ\Publish\API\Repository\Values\User\Role $result ) Tests that the resulting role contains the ID.
testResultContainsIdentifier ( eZ\Publish\API\Repository\Values\User\Role $result ) Tests that the resulting role contains identifier.
testResultIsRole ( eZ\Publish\API\Repository\Values\User\Role $result ) Tests that the resulting role is in fact an instance of Role class.

Protected Methods

Method Description
getParser ( ) : eZ\Publish\Core\REST\Client\Input\Parser\Role; Gets the parser for role.

Method Details

getParser() protected method

Gets the parser for role.
protected getParser ( ) : eZ\Publish\Core\REST\Client\Input\Parser\Role;
return eZ\Publish\Core\REST\Client\Input\Parser\Role;

testParse() public method

Tests the role parser.
public testParse ( ) : eZ\Publish\API\Repository\Values\User\Role
return eZ\Publish\API\Repository\Values\User\Role

testResultContainsId() public method

Tests that the resulting role contains the ID.
public testResultContainsId ( eZ\Publish\API\Repository\Values\User\Role $result )
$result eZ\Publish\API\Repository\Values\User\Role

testResultContainsIdentifier() public method

Tests that the resulting role contains identifier.
public testResultContainsIdentifier ( eZ\Publish\API\Repository\Values\User\Role $result )
$result eZ\Publish\API\Repository\Values\User\Role

testResultIsRole() public method

Tests that the resulting role is in fact an instance of Role class.
public testResultIsRole ( eZ\Publish\API\Repository\Values\User\Role $result )
$result eZ\Publish\API\Repository\Values\User\Role