PHP 클래스 eZ\Publish\Core\Persistence\Legacy\Tests\Content\Type\ContentUpdater\Action\AddFieldTest

상속: extends PHPUnit_Framework_TestCas\PHPUnit_Framework_TestCase
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel

보호된 프로퍼티들

프로퍼티 타입 설명
$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