PHP Класс eZ\Publish\Core\Persistence\Legacy\Tests\Content\Type\ContentUpdater\Action\AddFieldTest

Наследование: extends PHPUnit_Framework_TestCas\PHPUnit_Framework_TestCase
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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.

Открытые методы

Метод Описание
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 ( )

Защищенные методы

Метод Описание
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

Описание методов

getContentFixture() защищенный Метод

Returns a Content fixture.
protected getContentFixture ( integer $versionNo, array $languageCodes ) : eZ\Publish\SPI\Persistence\Content
$versionNo integer
$languageCodes array
Результат eZ\Publish\SPI\Persistence\Content

getContentGatewayMock() защищенный Метод

Returns a Content Gateway mock.
protected getContentGatewayMock ( ) : PHPUnit_Framework_MockObject_MockObject | Gateway
Результат PHPUnit_Framework_MockObject_MockObject | eZ\Publish\Core\Persistence\Legacy\Content\Gateway

getContentMapperMock() защищенный Метод

Returns a Content mapper mock.
protected getContentMapperMock ( ) : PHPUnit_Framework_MockObject_MockObject | Mapper
Результат PHPUnit_Framework_MockObject_MockObject | eZ\Publish\Core\Persistence\Legacy\Content\Mapper

getContentStorageHandlerMock() защищенный Метод

Returns a Content StorageHandler mock.
protected getContentStorageHandlerMock ( ) : PHPUnit_Framework_MockObject_MockObject | StorageHandler
Результат PHPUnit_Framework_MockObject_MockObject | eZ\Publish\Core\Persistence\Legacy\Content\StorageHandler

getFieldDefinitionFixture() защищенный Метод

Returns a FieldDefinition fixture.
protected getFieldDefinitionFixture ( ) : eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition
Результат eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition

getFieldReference() публичный Метод

Returns a reference Field.
public getFieldReference ( integer $id, integer $versionNo, string $languageCode ) : eZ\Publish\SPI\Persistence\Content\Field
$id integer
$versionNo integer
$languageCode string
Результат eZ\Publish\SPI\Persistence\Content\Field

getFieldValueConverterMock() защищенный Метод

Returns a FieldValue converter mock.
protected getFieldValueConverterMock ( ) : PHPUnit_Framework_MockObject_MockObject | eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter
Результат PHPUnit_Framework_MockObject_MockObject | eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter

getMockedAction() защищенный Метод

protected getMockedAction ( $methods = [] ) : PHPUnit_Framework_MockObject_MockObject | AddField
$methods
Результат PHPUnit_Framework_MockObject_MockObject | eZ\Publish\Core\Persistence\Legacy\Content\Type\ContentUpdater\Action\AddField

testApplyMultipleVersionsMultipleTranslations() публичный Метод

testApplyMultipleVersionsSingleTranslation() публичный Метод

testApplySingleVersionMultipleTranslations() публичный Метод

testApplySingleVersionSingleTranslation() публичный Метод

testCtor() публичный Метод

public testCtor ( )

testInsertExistingField() публичный Метод

testInsertExistingFieldUpdating() публичный Метод

testInsertNewField() публичный Метод

public testInsertNewField ( )

testInsertNewFieldUpdating() публичный Метод

Описание свойств

$addFieldAction защищенное свойство

AddField action to test.
protected AddField,eZ\Publish\Core\Persistence\Legacy\Content\Type\ContentUpdater\Action $addFieldAction
Результат eZ\Publish\Core\Persistence\Legacy\Content\Type\ContentUpdater\Action\AddField

$contentGatewayMock защищенное свойство

Content gateway mock.
protected Gateway,eZ\Publish\Core\Persistence\Legacy\Content $contentGatewayMock
Результат eZ\Publish\Core\Persistence\Legacy\Content\Gateway

$contentMapperMock защищенное свойство

protected Mapper,eZ\Publish\Core\Persistence\Legacy\Content $contentMapperMock
Результат eZ\Publish\Core\Persistence\Legacy\Content\Mapper

$contentStorageHandlerMock защищенное свойство

Content gateway mock.
protected StorageHandler,eZ\Publish\Core\Persistence\Legacy\Content $contentStorageHandlerMock
Результат eZ\Publish\Core\Persistence\Legacy\Content\StorageHandler

$fieldValueConverterMock защищенное свойство

FieldValue converter mock.
protected Converter,eZ\Publish\Core\Persistence\Legacy\Content\FieldValue $fieldValueConverterMock
Результат eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter