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

Show file Open project: ezsystems/ezpublish-kernel

Protected Properties

Property Type Description
$contentHandler eZ\Publish\Core\Persistence\Legacy\Content\Handler Mocked content handler instance.
$locationGateway eZ\Publish\Core\Persistence\Legacy\Content\Location\Gateway Mocked location gateway instance.
$locationMapper eZ\Publish\Core\Persistence\Legacy\Content\Location\Mapper Mocked location mapper instance.
$objectStateHandler eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Handler | PHPUnit_Framework_MockObject_MockObject Mocked object state handler instance.
$treeHandler eZ\Publish\Core\Persistence\Legacy\Content\TreeHandler | PHPUnit_Framework_MockObject_MockObject Mocked Tree handler instance.

Public Methods

Method Description
loadParentLocationsForDraftContent ( )
setUp ( )
testChangeMainLocation ( )
testCopySubtree ( ) Test for the copySubtree() method.
testCreateLocation ( )
testHideUnhideUpdateHidden ( )
testHideUpdateHidden ( )
testLoadLocation ( )
testLoadLocationByRemoteId ( )
testLoadLocationSubtree ( )
testLoadLocationsByContent ( )
testMarkSubtreeModified ( )
testMoveSubtree ( )
testRemoveSubtree ( ) Test for the removeSubtree() method.
testSetSectionForSubtree ( )
testSwapLocations ( )
testUpdateLocation ( )

Protected Methods

Method Description
getLocationHandler ( )
getPartlyMockedHandler ( array $methods ) : Handler Returns the handler to test with $methods mocked.

Method Details

getLocationHandler() protected method

protected getLocationHandler ( )

getPartlyMockedHandler() protected method

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

loadParentLocationsForDraftContent() public method

setUp() public method

public setUp ( )

testChangeMainLocation() public method

testCopySubtree() public method

Test for the copySubtree() method.
public testCopySubtree ( )

testCreateLocation() public method

public testCreateLocation ( )

testHideUnhideUpdateHidden() public method

testHideUpdateHidden() public method

testLoadLocation() public method

public testLoadLocation ( )

testLoadLocationByRemoteId() public method

testLoadLocationSubtree() public method

testLoadLocationsByContent() public method

testMarkSubtreeModified() public method

testMoveSubtree() public method

public testMoveSubtree ( )

testRemoveSubtree() public method

Test for the removeSubtree() method.
public testRemoveSubtree ( )

testSetSectionForSubtree() public method

testSwapLocations() public method

public testSwapLocations ( )

testUpdateLocation() public method

public testUpdateLocation ( )

Property Details

$contentHandler protected property

Mocked content handler instance.
protected Handler,eZ\Publish\Core\Persistence\Legacy\Content $contentHandler
return eZ\Publish\Core\Persistence\Legacy\Content\Handler

$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

$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

$objectStateHandler protected property

Mocked object state handler instance.
protected Handler,eZ\Publish\Core\Persistence\Legacy\Content\ObjectState|PHPUnit_Framework_MockObject_MockObject $objectStateHandler
return eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Handler | PHPUnit_Framework_MockObject_MockObject

$treeHandler protected property

Mocked Tree handler instance.
protected TreeHandler,eZ\Publish\Core\Persistence\Legacy\Content|PHPUnit_Framework_MockObject_MockObject $treeHandler
return eZ\Publish\Core\Persistence\Legacy\Content\TreeHandler | PHPUnit_Framework_MockObject_MockObject