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

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

Protected Properties

Property Type Description
$contentTypeServiceMock eZ\Publish\Core\REST\Client\ContentService
$versionInfoParserMock eZ\Publish\Core\REST\Client\Input\Parser\VersionInfo

Public Methods

Method Description
provideExpectedContentTypeProperties ( )
testParse ( ) : eZ\Publish\API\Repository\Values\Content\Content Tests the section parser.
testParsedProperties ( $propertyName, $expectedValue, $parsedContentType )

Protected Methods

Method Description
getContentTypeServiceMock ( ) : ContentService
getParser ( ) : ContentType Gets the section parser.

Method Details

getContentTypeServiceMock() protected method

protected getContentTypeServiceMock ( ) : ContentService
return eZ\Publish\Core\REST\Client\ContentService

getParser() protected method

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

provideExpectedContentTypeProperties() public method

testParse() public method

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

testParsedProperties() public method

public testParsedProperties ( $propertyName, $expectedValue, $parsedContentType )

Property Details

$contentTypeServiceMock protected property

protected ContentService,eZ\Publish\Core\REST\Client $contentTypeServiceMock
return eZ\Publish\Core\REST\Client\ContentService

$versionInfoParserMock protected property

protected VersionInfo,eZ\Publish\Core\REST\Client\Input\Parser $versionInfoParserMock
return eZ\Publish\Core\REST\Client\Input\Parser\VersionInfo