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

testSetSectionForSubtree() public method

    public function testSetSectionForSubtree()
    {
        $this->loggerMock->expects($this->once())->method('logCall');
        $this->cacheMock->expects($this->once())->method('clear')->with('content');
        $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('setSectionForSubtree')->with(33, 2)->will($this->returnValue(null));
        $handler = $this->persistenceCacheHandler->locationHandler();
        $handler->setSectionForSubtree(33, 2);
    }