PHP Class eZ\Publish\Core\Persistence\Legacy\Tests\Content\ContentHandlerTest

Afficher le fichier Open project: ezsystems/ezpublish-kernel

Protected Properties

Свойство Type Description
$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.

Méthodes publiques

Méthode Description
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 ( )

Méthodes protégées

Méthode Description
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.

Method Details

getContentFixtureForDraft() protected méthode

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

getContentHandler() protected méthode

Returns the handler to test.
protected getContentHandler ( ) : Handler
Résultat eZ\Publish\Core\Persistence\Legacy\Content\Handler

getContentTypeHandlerMock() protected méthode

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

getCreateStructFixture() public méthode

Returns a CreateStruct fixture.
public getCreateStructFixture ( ) : eZ\Publish\SPI\Persistence\Content\CreateStruct
Résultat eZ\Publish\SPI\Persistence\Content\CreateStruct

getFieldHandlerMock() protected méthode

Returns a FieldHandler mock.
protected getFieldHandlerMock ( ) : FieldHandler
Résultat eZ\Publish\Core\Persistence\Legacy\Content\FieldHandler

getGatewayMock() protected méthode

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

getLocationGatewayMock() protected méthode

Returns a Location Gateway mock.
protected getLocationGatewayMock ( ) : Gateway
Résultat eZ\Publish\Core\Persistence\Legacy\Content\Location\Gateway

getMapperMock() protected méthode

Returns a Mapper mock.
protected getMapperMock ( ) : Mapper
Résultat eZ\Publish\Core\Persistence\Legacy\Content\Mapper

getPartlyMockedHandler() protected méthode

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

getRelationFixture() protected méthode

protected getRelationFixture ( )

getSlugConverterMock() protected méthode

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

getTreeHandlerMock() protected méthode

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

getTypeGatewayMock() protected méthode

Returns a Content Type gateway mock.
protected getTypeGatewayMock ( ) : Gateway
Résultat eZ\Publish\Core\Persistence\Legacy\Content\Type\Gateway

getUrlAliasGatewayMock() protected méthode

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

testAddRelation() public méthode

public testAddRelation ( )

testCopyAllVersions() public méthode

public testCopyAllVersions ( )

testCopySingleVersion() public méthode

testCopyThrowsNotFoundExceptionContentNotFound() public méthode

testCopyThrowsNotFoundExceptionVersionNotFound() public méthode

testCreate() public méthode

public testCreate ( )

testCreateDraftFromVersion() public méthode

testCtor() public méthode

public testCtor ( )

testDeleteContentWithLocations() public méthode

Test for the deleteContent() method.

testDeleteContentWithoutLocations() public méthode

Test for the deleteContent() method.

testDeleteVersion() public méthode

public testDeleteVersion ( )

testListVersions() public méthode

public testListVersions ( )

testLoad() public méthode

public testLoad ( )

testLoadContentInfoByRemoteId() public méthode

testLoadDraftsForUser() public méthode

testLoadErrorNotFound() public méthode

testLoadRelations() public méthode

public testLoadRelations ( )

testLoadReverseRelations() public méthode

testPublish() public méthode

public testPublish ( )

testPublishFirstVersion() public méthode

testRemoveRawContent() public méthode

testRemoveRelation() public méthode

public testRemoveRelation ( )

testSetStatus() public méthode

public testSetStatus ( )

testUpdateContent() public méthode

public testUpdateContent ( )

testUpdateMetadata() public méthode

public testUpdateMetadata ( )

testUpdateMetadataUpdatesPathIdentificationString() public méthode

Property Details

$contentHandler protected_oe property

Content handler to test.
protected Handler,eZ\Publish\Core\Persistence\Legacy\Content $contentHandler
Résultat eZ\Publish\Core\Persistence\Legacy\Content\Handler

$contentTypeHandlerMock protected_oe property

ContentType handler mock.
protected Handler,eZ\Publish\Core\Persistence\Legacy\Content\Type $contentTypeHandlerMock
Résultat eZ\Publish\Core\Persistence\Legacy\Content\Type\Handler

$fieldHandlerMock protected_oe property

Field handler mock.
protected FieldHandler,eZ\Publish\Core\Persistence\Legacy\Content $fieldHandlerMock
Résultat eZ\Publish\Core\Persistence\Legacy\Content\FieldHandler

$gatewayMock protected_oe property

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

$locationGatewayMock protected_oe property

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

$mapperMock protected_oe property

Mapper mock.
protected Mapper,eZ\Publish\Core\Persistence\Legacy\Content $mapperMock
Résultat eZ\Publish\Core\Persistence\Legacy\Content\Mapper

$slugConverterMock protected_oe property

Slug converter mock.
protected SlugConverter,eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias $slugConverterMock
Résultat eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\SlugConverter

$treeHandlerMock protected_oe property

Location handler mock.
protected TreeHandler,eZ\Publish\Core\Persistence\Legacy\Content $treeHandlerMock
Résultat eZ\Publish\Core\Persistence\Legacy\Content\TreeHandler

$typeGatewayMock protected_oe property

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

$urlAliasGatewayMock protected_oe property

Location handler mock.
protected Gateway,eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias $urlAliasGatewayMock
Résultat eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Gateway