PHP Класс eZ\Publish\Core\Persistence\Legacy\Tests\Content\ContentHandlerTest

Наследование: extends eZ\Publish\Core\Persistence\Legacy\Tests\TestCase
Показать файл Открыть проект

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

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