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

testMove() public method

public testMove ( )
    public function testMove()
    {
        $this->loggerMock->expects($this->once())->method('logCall');
        $this->cacheMock->expects($this->at(0))->method('clear')->with('location')->will($this->returnValue(true));
        $this->cacheMock->expects($this->at(1))->method('clear')->with('user', 'role', 'assignments', 'byGroup')->will($this->returnValue(true));
        $innerHandlerMock = $this->getMock('eZ\\Publish\\SPI\\Persistence\\Content\\Location\\Handler');
        $this->persistenceHandlerMock->expects($this->once())->method('locationHandler')->will($this->returnValue($innerHandlerMock));
        $innerHandlerMock->expects($this->once())->method('move')->with(33, 66)->will($this->returnValue(true));
        $handler = $this->persistenceCacheHandler->locationHandler();
        $handler->move(33, 66);
    }