PHP Class eZ\Publish\Core\Persistence\Legacy\Tests\Content\Type\ContentUpdater\Action\RemoveFieldTest

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 gateway mock.
$removeFieldAction eZ\Publish\Core\Persistence\Legacy\Content\Type\ContentUpdater\Action\RemoveField RemoveField action to test.

Public Methods

Method Description
testApplyMultipleVersionsMultipleTranslations ( )
testApplyMultipleVersionsSingleTranslation ( )
testApplySingleVersionSingleTranslation ( )
testCtor ( )

Protected Methods

Method Description
getContentFixture ( $versionNo, $languageCodes ) : eZ\Publish\SPI\Persistence\Content Returns a Content fixture.
getContentGatewayMock ( ) : PHPUnit_Framework_MockObject_MockObject | Gateway Returns a Content Gateway mock.
getContentMapperMock ( ) : PHPUnit_Framework_MockObject_MockObject | Mapper Returns a Content mapper mock.
getContentStorageHandlerMock ( ) : PHPUnit_Framework_MockObject_MockObject | StorageHandler Returns a Content StorageHandler mock.
getFieldDefinitionFixture ( ) : eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition Returns a FieldDefinition fixture.
getRemoveFieldAction ( ) : RemoveField Returns the RemoveField action to test.

Method Details

getContentFixture() protected method

Returns a Content fixture.
protected getContentFixture ( $versionNo, $languageCodes ) : eZ\Publish\SPI\Persistence\Content
return eZ\Publish\SPI\Persistence\Content

getContentGatewayMock() protected method

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

getContentMapperMock() protected method

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

getContentStorageHandlerMock() protected method

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

getFieldDefinitionFixture() protected method

Returns a FieldDefinition fixture.
protected getFieldDefinitionFixture ( ) : eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition
return eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition

getRemoveFieldAction() protected method

Returns the RemoveField action to test.
protected getRemoveFieldAction ( ) : RemoveField
return eZ\Publish\Core\Persistence\Legacy\Content\Type\ContentUpdater\Action\RemoveField

testApplyMultipleVersionsMultipleTranslations() public method

testApplyMultipleVersionsSingleTranslation() public method

testApplySingleVersionSingleTranslation() public method

testCtor() public method

public testCtor ( )

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 gateway mock.
protected StorageHandler,eZ\Publish\Core\Persistence\Legacy\Content $contentStorageHandlerMock
return eZ\Publish\Core\Persistence\Legacy\Content\StorageHandler

$removeFieldAction protected property

RemoveField action to test.
protected RemoveField,eZ\Publish\Core\Persistence\Legacy\Content\Type\ContentUpdater\Action $removeFieldAction
return eZ\Publish\Core\Persistence\Legacy\Content\Type\ContentUpdater\Action\RemoveField