PHP 클래스 eZ\Publish\Core\Persistence\Legacy\Tests\Content\ContentHandlerTest

파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel

보호된 프로퍼티들

프로퍼티 타입 설명
$contentHandler eZ\Publish\Core\Persistence\Legacy\Content\Handler Content handler to test.
$contentTypeHandlerMock eZ\Publish\Core\Persistence\Legacy\Content\Type\Handler ContentType handler mock.
$fieldHandlerMock eZ\Publish\Core\Persistence\Legacy\Content\FieldHandler Field handler mock.
$gatewayMock eZ\Publish\Core\Persistence\Legacy\Content\Gateway Gateway mock.
$locationGatewayMock eZ\Publish\Core\Persistence\Legacy\Content\Location\Gateway Location gateway mock.
$mapperMock eZ\Publish\Core\Persistence\Legacy\Content\Mapper Mapper mock.
$slugConverterMock eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\SlugConverter Slug converter mock.
$treeHandlerMock eZ\Publish\Core\Persistence\Legacy\Content\TreeHandler Location handler mock.
$typeGatewayMock eZ\Publish\Core\Persistence\Legacy\Content\Type\Gateway Type gateway mock.
$urlAliasGatewayMock eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Gateway Location handler mock.

공개 메소드들

메소드 설명
getCreateStructFixture ( ) : eZ\Publish\SPI\Persistence\Content\CreateStruct Returns a CreateStruct fixture.
testAddRelation ( )
testCopyAllVersions ( )
testCopySingleVersion ( )
testCopyThrowsNotFoundExceptionContentNotFound ( )
testCopyThrowsNotFoundExceptionVersionNotFound ( )
testCreate ( )
testCreateDraftFromVersion ( )
testCtor ( )
testDeleteContentWithLocations ( ) Test for the deleteContent() method.
testDeleteContentWithoutLocations ( ) Test for the deleteContent() method.
testDeleteVersion ( )
testListVersions ( )
testLoad ( )
testLoadContentInfoByRemoteId ( )
testLoadDraftsForUser ( )
testLoadErrorNotFound ( )
testLoadRelations ( )
testLoadReverseRelations ( )
testPublish ( )
testPublishFirstVersion ( )
testRemoveRawContent ( )
testRemoveRelation ( )
testSetStatus ( )
testUpdateContent ( )
testUpdateMetadata ( )
testUpdateMetadataUpdatesPathIdentificationString ( )

보호된 메소드들

메소드 설명
getContentFixtureForDraft ( ) : eZ\Publish\SPI\Persistence\Content Returns a Content for {@link testCreateDraftFromVersion()}.
getContentHandler ( ) : Handler Returns the handler to test.
getContentTypeHandlerMock ( ) : PHPUnit_Framework_MockObject_MockObject | Handler Returns a ContentTypeHandler mock.
getFieldHandlerMock ( ) : FieldHandler Returns a FieldHandler mock.
getGatewayMock ( ) : Gateway Returns a mock object for the Content Gateway.
getLocationGatewayMock ( ) : Gateway Returns a Location Gateway mock.
getMapperMock ( ) : Mapper Returns a Mapper mock.
getPartlyMockedHandler ( array $methods ) : Handler Returns the handler to test with $methods mocked.
getRelationFixture ( )
getSlugConverterMock ( ) : SlugConverter Returns a mock object for the UrlAlias Handler.
getTreeHandlerMock ( ) : PHPUnit_Framework_MockObject_MockObject | TreeHandler Returns a TreeHandler mock.
getTypeGatewayMock ( ) : Gateway Returns a Content Type gateway mock.
getUrlAliasGatewayMock ( ) : Gateway Returns a mock object for the UrlAlias Gateway.

메소드 상세

getContentFixtureForDraft() 보호된 메소드

Returns a Content for {@link testCreateDraftFromVersion()}.
protected getContentFixtureForDraft ( ) : eZ\Publish\SPI\Persistence\Content
리턴 eZ\Publish\SPI\Persistence\Content

getContentHandler() 보호된 메소드

Returns the handler to test.
protected getContentHandler ( ) : Handler
리턴 eZ\Publish\Core\Persistence\Legacy\Content\Handler

getContentTypeHandlerMock() 보호된 메소드

Returns a ContentTypeHandler mock.
protected getContentTypeHandlerMock ( ) : PHPUnit_Framework_MockObject_MockObject | Handler
리턴 PHPUnit_Framework_MockObject_MockObject | eZ\Publish\Core\Persistence\Legacy\Content\Type\Handler

getCreateStructFixture() 공개 메소드

Returns a CreateStruct fixture.
public getCreateStructFixture ( ) : eZ\Publish\SPI\Persistence\Content\CreateStruct
리턴 eZ\Publish\SPI\Persistence\Content\CreateStruct

getFieldHandlerMock() 보호된 메소드

Returns a FieldHandler mock.
protected getFieldHandlerMock ( ) : FieldHandler
리턴 eZ\Publish\Core\Persistence\Legacy\Content\FieldHandler

getGatewayMock() 보호된 메소드

Returns a mock object for the Content Gateway.
protected getGatewayMock ( ) : Gateway
리턴 eZ\Publish\Core\Persistence\Legacy\Content\Gateway

getLocationGatewayMock() 보호된 메소드

Returns a Location Gateway mock.
protected getLocationGatewayMock ( ) : Gateway
리턴 eZ\Publish\Core\Persistence\Legacy\Content\Location\Gateway

getMapperMock() 보호된 메소드

Returns a Mapper mock.
protected getMapperMock ( ) : Mapper
리턴 eZ\Publish\Core\Persistence\Legacy\Content\Mapper

getPartlyMockedHandler() 보호된 메소드

Returns the handler to test with $methods mocked.
protected getPartlyMockedHandler ( array $methods ) : Handler
$methods array
리턴 eZ\Publish\Core\Persistence\Legacy\Content\Handler

getRelationFixture() 보호된 메소드

protected getRelationFixture ( )

getSlugConverterMock() 보호된 메소드

Returns a mock object for the UrlAlias Handler.
protected getSlugConverterMock ( ) : SlugConverter
리턴 eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\SlugConverter

getTreeHandlerMock() 보호된 메소드

Returns a TreeHandler mock.
protected getTreeHandlerMock ( ) : PHPUnit_Framework_MockObject_MockObject | TreeHandler
리턴 PHPUnit_Framework_MockObject_MockObject | eZ\Publish\Core\Persistence\Legacy\Content\TreeHandler

getTypeGatewayMock() 보호된 메소드

Returns a Content Type gateway mock.
protected getTypeGatewayMock ( ) : Gateway
리턴 eZ\Publish\Core\Persistence\Legacy\Content\Type\Gateway

getUrlAliasGatewayMock() 보호된 메소드

Returns a mock object for the UrlAlias Gateway.
protected getUrlAliasGatewayMock ( ) : Gateway
리턴 eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Gateway

testAddRelation() 공개 메소드

public testAddRelation ( )

testCopyAllVersions() 공개 메소드

public testCopyAllVersions ( )

testCopySingleVersion() 공개 메소드

testCopyThrowsNotFoundExceptionContentNotFound() 공개 메소드

testCopyThrowsNotFoundExceptionVersionNotFound() 공개 메소드

testCreate() 공개 메소드

public testCreate ( )

testCreateDraftFromVersion() 공개 메소드

testCtor() 공개 메소드

public testCtor ( )

testDeleteContentWithLocations() 공개 메소드

Test for the deleteContent() method.

testDeleteContentWithoutLocations() 공개 메소드

Test for the deleteContent() method.

testDeleteVersion() 공개 메소드

public testDeleteVersion ( )

testListVersions() 공개 메소드

public testListVersions ( )

testLoad() 공개 메소드

public testLoad ( )

testLoadContentInfoByRemoteId() 공개 메소드

testLoadDraftsForUser() 공개 메소드

testLoadErrorNotFound() 공개 메소드

testLoadRelations() 공개 메소드

public testLoadRelations ( )

testLoadReverseRelations() 공개 메소드

testPublish() 공개 메소드

public testPublish ( )

testPublishFirstVersion() 공개 메소드

testRemoveRawContent() 공개 메소드

testRemoveRelation() 공개 메소드

public testRemoveRelation ( )

testSetStatus() 공개 메소드

public testSetStatus ( )

testUpdateContent() 공개 메소드

public testUpdateContent ( )

testUpdateMetadata() 공개 메소드

public testUpdateMetadata ( )

testUpdateMetadataUpdatesPathIdentificationString() 공개 메소드

프로퍼티 상세

$contentHandler 보호되어 있는 프로퍼티

Content handler to test.
protected Handler,eZ\Publish\Core\Persistence\Legacy\Content $contentHandler
리턴 eZ\Publish\Core\Persistence\Legacy\Content\Handler

$contentTypeHandlerMock 보호되어 있는 프로퍼티

ContentType handler mock.
protected Handler,eZ\Publish\Core\Persistence\Legacy\Content\Type $contentTypeHandlerMock
리턴 eZ\Publish\Core\Persistence\Legacy\Content\Type\Handler

$fieldHandlerMock 보호되어 있는 프로퍼티

Field handler mock.
protected FieldHandler,eZ\Publish\Core\Persistence\Legacy\Content $fieldHandlerMock
리턴 eZ\Publish\Core\Persistence\Legacy\Content\FieldHandler

$gatewayMock 보호되어 있는 프로퍼티

Gateway mock.
protected Gateway,eZ\Publish\Core\Persistence\Legacy\Content $gatewayMock
리턴 eZ\Publish\Core\Persistence\Legacy\Content\Gateway

$locationGatewayMock 보호되어 있는 프로퍼티

Location gateway mock.
protected Gateway,eZ\Publish\Core\Persistence\Legacy\Content\Location $locationGatewayMock
리턴 eZ\Publish\Core\Persistence\Legacy\Content\Location\Gateway

$mapperMock 보호되어 있는 프로퍼티

Mapper mock.
protected Mapper,eZ\Publish\Core\Persistence\Legacy\Content $mapperMock
리턴 eZ\Publish\Core\Persistence\Legacy\Content\Mapper

$slugConverterMock 보호되어 있는 프로퍼티

Slug converter mock.
protected SlugConverter,eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias $slugConverterMock
리턴 eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\SlugConverter

$treeHandlerMock 보호되어 있는 프로퍼티

Location handler mock.
protected TreeHandler,eZ\Publish\Core\Persistence\Legacy\Content $treeHandlerMock
리턴 eZ\Publish\Core\Persistence\Legacy\Content\TreeHandler

$typeGatewayMock 보호되어 있는 프로퍼티

Type gateway mock.
protected Gateway,eZ\Publish\Core\Persistence\Legacy\Content\Type $typeGatewayMock
리턴 eZ\Publish\Core\Persistence\Legacy\Content\Type\Gateway

$urlAliasGatewayMock 보호되어 있는 프로퍼티

Location handler mock.
protected Gateway,eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias $urlAliasGatewayMock
리턴 eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Gateway