Property | Type | Description | |
---|---|---|---|
$contentHandler | Content handler to test. | ||
$contentTypeHandlerMock | ContentType handler mock. | ||
$fieldHandlerMock | Field handler mock. | ||
$gatewayMock | Gateway mock. | ||
$locationGatewayMock | Location gateway mock. | ||
$mapperMock | Mapper mock. | ||
$slugConverterMock | Slug converter mock. | ||
$treeHandlerMock | Location handler mock. | ||
$typeGatewayMock | Type gateway mock. | ||
$urlAliasGatewayMock | Location handler mock. |
Method | 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 ( ) |
Method | Description | |
---|---|---|
getContentFixtureForDraft ( ) : eZ\Publish\SPI\Persistence\Content | Returns a Content for {@link testCreateDraftFromVersion()}. | |
getContentHandler ( ) : |
Returns the handler to test. | |
getContentTypeHandlerMock ( ) : PHPUnit_Framework_MockObject_MockObject | |
Returns a ContentTypeHandler mock. | |
getFieldHandlerMock ( ) : |
Returns a FieldHandler mock. | |
getGatewayMock ( ) : |
Returns a mock object for the Content Gateway. | |
getLocationGatewayMock ( ) : |
Returns a Location Gateway mock. | |
getMapperMock ( ) : |
Returns a Mapper mock. | |
getPartlyMockedHandler ( array $methods ) : |
Returns the handler to test with $methods mocked. | |
getRelationFixture ( ) | ||
getSlugConverterMock ( ) : |
Returns a mock object for the UrlAlias Handler. | |
getTreeHandlerMock ( ) : PHPUnit_Framework_MockObject_MockObject | |
Returns a TreeHandler mock. | |
getTypeGatewayMock ( ) : |
Returns a Content Type gateway mock. | |
getUrlAliasGatewayMock ( ) : |
Returns a mock object for the UrlAlias Gateway. |
protected getContentFixtureForDraft ( ) : eZ\Publish\SPI\Persistence\Content | ||
return | eZ\Publish\SPI\Persistence\Content |
protected getContentHandler ( ) : |
||
return |
protected getContentTypeHandlerMock ( ) : PHPUnit_Framework_MockObject_MockObject | |
||
return | PHPUnit_Framework_MockObject_MockObject | |
public getCreateStructFixture ( ) : eZ\Publish\SPI\Persistence\Content\CreateStruct | ||
return | eZ\Publish\SPI\Persistence\Content\CreateStruct |
protected getFieldHandlerMock ( ) : |
||
return |
protected getGatewayMock ( ) : |
||
return |
protected getLocationGatewayMock ( ) : |
||
return |
protected getMapperMock ( ) : |
||
return |
protected getPartlyMockedHandler ( array $methods ) : |
||
$methods | array | |
return |
protected getSlugConverterMock ( ) : |
||
return |
protected getTreeHandlerMock ( ) : PHPUnit_Framework_MockObject_MockObject | |
||
return | PHPUnit_Framework_MockObject_MockObject | |
protected getTypeGatewayMock ( ) : |
||
return |
protected getUrlAliasGatewayMock ( ) : |
||
return |
public testDeleteContentWithLocations ( ) |
public testDeleteContentWithoutLocations ( ) |
protected Handler,eZ\Publish\Core\Persistence\Legacy\Content $contentHandler | ||
return |
protected Handler,eZ\Publish\Core\Persistence\Legacy\Content\Type $contentTypeHandlerMock | ||
return |
protected FieldHandler,eZ\Publish\Core\Persistence\Legacy\Content $fieldHandlerMock | ||
return |
protected Gateway,eZ\Publish\Core\Persistence\Legacy\Content $gatewayMock | ||
return |
protected Gateway,eZ\Publish\Core\Persistence\Legacy\Content\Location $locationGatewayMock | ||
return |
protected Mapper,eZ\Publish\Core\Persistence\Legacy\Content $mapperMock | ||
return |
protected SlugConverter,eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias $slugConverterMock | ||
return |
protected TreeHandler,eZ\Publish\Core\Persistence\Legacy\Content $treeHandlerMock | ||
return |
protected Gateway,eZ\Publish\Core\Persistence\Legacy\Content\Type $typeGatewayMock | ||
return |