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

Inheritance: extends PHPUnit_Framework_TestCas\PHPUnit_Framework_TestCase
Afficher le fichier Open project: ezsystems/ezpublish-kernel

Protected Properties

Свойство Type Description
$addFieldAction eZ\Publish\Core\Persistence\Legacy\Content\Type\ContentUpdater\Action\AddField AddField action to test.
$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.
$fieldValueConverterMock eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter FieldValue converter mock.

Méthodes publiques

Méthode Description
getFieldReference ( integer $id, integer $versionNo, string $languageCode ) : eZ\Publish\SPI\Persistence\Content\Field Returns a reference Field.
testApplyMultipleVersionsMultipleTranslations ( )
testApplyMultipleVersionsSingleTranslation ( )
testApplySingleVersionMultipleTranslations ( )
testApplySingleVersionSingleTranslation ( )
testCtor ( )
testInsertExistingField ( )
testInsertExistingFieldUpdating ( )
testInsertNewField ( )
testInsertNewFieldUpdating ( )

Méthodes protégées

Méthode Description
getContentFixture ( integer $versionNo, array $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.
getFieldValueConverterMock ( ) : PHPUnit_Framework_MockObject_MockObject | eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter Returns a FieldValue converter mock.
getMockedAction ( $methods = [] ) : PHPUnit_Framework_MockObject_MockObject | AddField

Method Details

getContentFixture() protected méthode

Returns a Content fixture.
protected getContentFixture ( integer $versionNo, array $languageCodes ) : eZ\Publish\SPI\Persistence\Content
$versionNo integer
$languageCodes array
Résultat eZ\Publish\SPI\Persistence\Content

getContentGatewayMock() protected méthode

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

getContentMapperMock() protected méthode

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

getContentStorageHandlerMock() protected méthode

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

getFieldDefinitionFixture() protected méthode

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

getFieldReference() public méthode

Returns a reference Field.
public getFieldReference ( integer $id, integer $versionNo, string $languageCode ) : eZ\Publish\SPI\Persistence\Content\Field
$id integer
$versionNo integer
$languageCode string
Résultat eZ\Publish\SPI\Persistence\Content\Field

getFieldValueConverterMock() protected méthode

Returns a FieldValue converter mock.
protected getFieldValueConverterMock ( ) : PHPUnit_Framework_MockObject_MockObject | eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter
Résultat PHPUnit_Framework_MockObject_MockObject | eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter

getMockedAction() protected méthode

protected getMockedAction ( $methods = [] ) : PHPUnit_Framework_MockObject_MockObject | AddField
$methods
Résultat PHPUnit_Framework_MockObject_MockObject | eZ\Publish\Core\Persistence\Legacy\Content\Type\ContentUpdater\Action\AddField

testApplyMultipleVersionsMultipleTranslations() public méthode

testApplyMultipleVersionsSingleTranslation() public méthode

testApplySingleVersionMultipleTranslations() public méthode

testApplySingleVersionSingleTranslation() public méthode

testCtor() public méthode

public testCtor ( )

testInsertExistingField() public méthode

testInsertExistingFieldUpdating() public méthode

testInsertNewField() public méthode

public testInsertNewField ( )

testInsertNewFieldUpdating() public méthode

Property Details

$addFieldAction protected_oe property

AddField action to test.
protected AddField,eZ\Publish\Core\Persistence\Legacy\Content\Type\ContentUpdater\Action $addFieldAction
Résultat eZ\Publish\Core\Persistence\Legacy\Content\Type\ContentUpdater\Action\AddField

$contentGatewayMock protected_oe property

Content gateway mock.
protected Gateway,eZ\Publish\Core\Persistence\Legacy\Content $contentGatewayMock
Résultat eZ\Publish\Core\Persistence\Legacy\Content\Gateway

$contentMapperMock protected_oe property

protected Mapper,eZ\Publish\Core\Persistence\Legacy\Content $contentMapperMock
Résultat eZ\Publish\Core\Persistence\Legacy\Content\Mapper

$contentStorageHandlerMock protected_oe property

Content gateway mock.
protected StorageHandler,eZ\Publish\Core\Persistence\Legacy\Content $contentStorageHandlerMock
Résultat eZ\Publish\Core\Persistence\Legacy\Content\StorageHandler

$fieldValueConverterMock protected_oe property

FieldValue converter mock.
protected Converter,eZ\Publish\Core\Persistence\Legacy\Content\FieldValue $fieldValueConverterMock
Résultat eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter