PHP Class eZ\Publish\Core\Persistence\Legacy\Tests\Content\Type\ContentUpdaterTest

Inheritance: extends PHPUnit_Framework_TestCas\PHPUnit_Framework_TestCase
Show file Open project: ezsystems/ezpublish-kernel

Protected Properties

Property Type Description
$contentGatewayMock eZ\Publish\Core\Persistence\Legacy\Content\Gateway Content gateway mock.
$contentMapperMock eZ\Publish\Core\Persistence\Legacy\Content\Mapper
$contentStorageHandlerMock eZ\Publish\Core\Persistence\Legacy\Content\StorageHandler Content StorageHandler mock.
$contentUpdater eZ\Publish\Core\Persistence\Legacy\Content\Type\ContentUpdater Content Updater to test.
$converterRegistryMock eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\ConverterRegistry FieldValue converter registry mock.
$searchHandlerMock eZ\Publish\Core\Search\Legacy\Content\Handler Search handler mock.

Public Methods

Method Description
testApplyUpdates ( )
testCtor ( )
testDetermineActions ( )

Protected Methods

Method Description
getContentGatewayMock ( ) : Gateway Returns a Content Gateway mock.
getContentMapperMock ( ) : Mapper Returns a Content mapper mock.
getContentStorageHandlerMock ( ) : StorageHandler Returns a Content StorageHandler mock.
getContentUpdater ( ) : ContentUpdater Returns the content updater to test.
getConverterRegistryMock ( ) : ConverterRegistry Returns a FieldValue Converter registry mock.
getFromTypeFixture ( ) : eZ\Publish\SPI\Persistence\Content\Type Returns a fixture for the from Type.
getToTypeFixture ( ) : eZ\Publish\SPI\Persistence\Content\Type Returns a fixture for the to Type.

Method Details

getContentGatewayMock() protected method

Returns a Content Gateway mock.
protected getContentGatewayMock ( ) : Gateway
return eZ\Publish\Core\Persistence\Legacy\Content\Gateway

getContentMapperMock() protected method

Returns a Content mapper mock.
protected getContentMapperMock ( ) : Mapper
return eZ\Publish\Core\Persistence\Legacy\Content\Mapper

getContentStorageHandlerMock() protected method

Returns a Content StorageHandler mock.
protected getContentStorageHandlerMock ( ) : StorageHandler
return eZ\Publish\Core\Persistence\Legacy\Content\StorageHandler

getContentUpdater() protected method

Returns the content updater to test.
protected getContentUpdater ( ) : ContentUpdater
return eZ\Publish\Core\Persistence\Legacy\Content\Type\ContentUpdater

getConverterRegistryMock() protected method

Returns a FieldValue Converter registry mock.
protected getConverterRegistryMock ( ) : ConverterRegistry
return eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\ConverterRegistry

getFromTypeFixture() protected method

Returns a fixture for the from Type.
protected getFromTypeFixture ( ) : eZ\Publish\SPI\Persistence\Content\Type
return eZ\Publish\SPI\Persistence\Content\Type

getToTypeFixture() protected method

Returns a fixture for the to Type.
protected getToTypeFixture ( ) : eZ\Publish\SPI\Persistence\Content\Type
return eZ\Publish\SPI\Persistence\Content\Type

testApplyUpdates() public method

public testApplyUpdates ( )

testCtor() public method

public testCtor ( )

testDetermineActions() public method

Property Details

$contentGatewayMock protected property

Content gateway mock.
protected Gateway,eZ\Publish\Core\Persistence\Legacy\Content $contentGatewayMock
return eZ\Publish\Core\Persistence\Legacy\Content\Gateway

$contentMapperMock protected property

protected Mapper,eZ\Publish\Core\Persistence\Legacy\Content $contentMapperMock
return eZ\Publish\Core\Persistence\Legacy\Content\Mapper

$contentStorageHandlerMock protected property

Content StorageHandler mock.
protected StorageHandler,eZ\Publish\Core\Persistence\Legacy\Content $contentStorageHandlerMock
return eZ\Publish\Core\Persistence\Legacy\Content\StorageHandler

$contentUpdater protected property

Content Updater to test.
protected ContentUpdater,eZ\Publish\Core\Persistence\Legacy\Content\Type $contentUpdater
return eZ\Publish\Core\Persistence\Legacy\Content\Type\ContentUpdater

$converterRegistryMock protected property

FieldValue converter registry mock.
protected ConverterRegistry,eZ\Publish\Core\Persistence\Legacy\Content\FieldValue $converterRegistryMock
return eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\ConverterRegistry

$searchHandlerMock protected property

Search handler mock.
protected Handler,eZ\Publish\Core\Search\Legacy\Content $searchHandlerMock
return eZ\Publish\Core\Search\Legacy\Content\Handler