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

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

Protected Properties

Property Type Description
$contentServiceMock eZ\Publish\Core\REST\Client\ContentService
$fieldTypeParserMock eZ\Publish\Core\REST\Common\Input\FieldTypeParser
$versionInfoParserMock eZ\Publish\Core\REST\Client\Input\Parser\VersionInfo

Public Methods

Method Description
testParse ( ) : eZ\Publish\API\Repository\Values\Content\Content Tests the section parser.
testParsedFirstNameField ( $parsedContent )
testParsedLastNameField ( $parsedContent )
testParsedVersionInfo ( $parsedContent )

Protected Methods

Method Description
getContentServiceMock ( ) : ContentService
getFieldTypeParserMock ( ) : FieldTypeParser
getParser ( ) : Content Gets the section parser.
getVersionInfoParserMock ( ) : VersionInfo

Method Details

getContentServiceMock() protected method

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

getFieldTypeParserMock() protected method

protected getFieldTypeParserMock ( ) : FieldTypeParser
return eZ\Publish\Core\REST\Common\Input\FieldTypeParser

getParser() protected method

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

getVersionInfoParserMock() protected method

protected getVersionInfoParserMock ( ) : VersionInfo
return eZ\Publish\Core\REST\Client\Input\Parser\VersionInfo

testParse() public method

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

testParsedFirstNameField() public method

public testParsedFirstNameField ( $parsedContent )

testParsedLastNameField() public method

public testParsedLastNameField ( $parsedContent )

testParsedVersionInfo() public method

public testParsedVersionInfo ( $parsedContent )

Property Details

$contentServiceMock protected property

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

$fieldTypeParserMock protected property

protected FieldTypeParser,eZ\Publish\Core\REST\Common\Input $fieldTypeParserMock
return eZ\Publish\Core\REST\Common\Input\FieldTypeParser

$versionInfoParserMock protected property

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