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

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

Public Methods

Method Description
testParse ( ) : eZ\Publish\API\Repository\Values\Content\Section Tests the section parser.
testResultContainsId ( eZ\Publish\API\Repository\Values\Content\Section $result ) Tests if resulting section contains the ID.
testResultContainsIdentifier ( eZ\Publish\API\Repository\Values\Content\Section $result ) Tests if resulting section contains the identifier.
testResultContainsName ( eZ\Publish\API\Repository\Values\Content\Section $result ) Tests if resulting section contains the name.
testResultIsSection ( eZ\Publish\API\Repository\Values\Content\Section $result ) Tests that the resulting role is in fact an instance of Section class.

Protected Methods

Method Description
getParser ( ) : eZ\Publish\Core\REST\Client\Input\Parser\Section; Gets the section parser.

Method Details

getParser() protected method

Gets the section parser.
protected getParser ( ) : eZ\Publish\Core\REST\Client\Input\Parser\Section;
return eZ\Publish\Core\REST\Client\Input\Parser\Section;

testParse() public method

Tests the section parser.
public testParse ( ) : eZ\Publish\API\Repository\Values\Content\Section
return eZ\Publish\API\Repository\Values\Content\Section

testResultContainsId() public method

Tests if resulting section contains the ID.
public testResultContainsId ( eZ\Publish\API\Repository\Values\Content\Section $result )
$result eZ\Publish\API\Repository\Values\Content\Section

testResultContainsIdentifier() public method

Tests if resulting section contains the identifier.
public testResultContainsIdentifier ( eZ\Publish\API\Repository\Values\Content\Section $result )
$result eZ\Publish\API\Repository\Values\Content\Section

testResultContainsName() public method

Tests if resulting section contains the name.
public testResultContainsName ( eZ\Publish\API\Repository\Values\Content\Section $result )
$result eZ\Publish\API\Repository\Values\Content\Section

testResultIsSection() public method

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