PHP Class eZ\Publish\Core\Persistence\Legacy\Tests\Content\Location\TrashHandlerTest

Show file Open project: ezsystems/ezpublish-kernel

Protected Properties

Property Type Description
$contentHandler PHPUnit_Framework_MockObject_MockObject Mocked content handler instance.
$locationGateway eZ\Publish\Core\Persistence\Legacy\Content\Location\Gateway Mocked location gateway instance.
$locationHandler eZ\Publish\Core\Persistence\Legacy\Content\Location\Handler Mocked location handler instance.
$locationMapper eZ\Publish\Core\Persistence\Legacy\Content\Location\Mapper Mocked location mapper instance.

Public Methods

Method Description
testDeleteTrashItemNoMoreLocations ( )
testDeleteTrashItemStillHaveLocations ( )
testEmptyTrash ( )
testLoadTrashItem ( )
testRecover ( )
testTrashSubtree ( )
testTrashSubtreeReturnsNull ( )
testTrashSubtreeUpdatesMainLocation ( )

Protected Methods

Method Description
getTrashHandler ( )

Method Details

getTrashHandler() protected method

protected getTrashHandler ( )

testDeleteTrashItemNoMoreLocations() public method

testDeleteTrashItemStillHaveLocations() public method

testEmptyTrash() public method

public testEmptyTrash ( )

testLoadTrashItem() public method

public testLoadTrashItem ( )

testRecover() public method

public testRecover ( )

testTrashSubtree() public method

public testTrashSubtree ( )

testTrashSubtreeReturnsNull() public method

testTrashSubtreeUpdatesMainLocation() public method

Property Details

$contentHandler protected property

Mocked content handler instance.
protected PHPUnit_Framework_MockObject_MockObject $contentHandler
return PHPUnit_Framework_MockObject_MockObject

$locationGateway protected property

Mocked location gateway instance.
protected Gateway,eZ\Publish\Core\Persistence\Legacy\Content\Location $locationGateway
return eZ\Publish\Core\Persistence\Legacy\Content\Location\Gateway

$locationHandler protected property

Mocked location handler instance.
protected Handler,eZ\Publish\Core\Persistence\Legacy\Content\Location $locationHandler
return eZ\Publish\Core\Persistence\Legacy\Content\Location\Handler

$locationMapper protected property

Mocked location mapper instance.
protected Mapper,eZ\Publish\Core\Persistence\Legacy\Content\Location $locationMapper
return eZ\Publish\Core\Persistence\Legacy\Content\Location\Mapper