eZ\Publish\Core\Persistence\Cache\Tests\LocationHandlerTest::testCopySubtree PHP Method

testCopySubtree() public method

public testCopySubtree ( )
    public function testCopySubtree()
    {
        $this->loggerMock->expects($this->once())->method('logCall');
        $this->cacheMock->expects($this->never())->method($this->anything());
        $innerHandler = $this->getMock('eZ\\Publish\\SPI\\Persistence\\Content\\Location\\Handler');
        $this->persistenceHandlerMock->expects($this->once())->method('locationHandler')->will($this->returnValue($innerHandler));
        $innerHandler->expects($this->once())->method('copySubtree')->with(55, 66)->will($this->returnValue(null));
        $handler = $this->persistenceCacheHandler->locationHandler();
        $handler->copySubtree(55, 66);
    }