eZ\Publish\Core\Persistence\Cache\Tests\ContentTypeHandlerTest::testUnlinkDraft PHP Метод

testUnlinkDraft() публичный Метод

public testUnlinkDraft ( )
    public function testUnlinkDraft()
    {
        $this->loggerMock->expects($this->once())->method('logCall');
        $this->cacheMock->expects($this->never())->method($this->anything());
        $innerHandlerMock = $this->getMock('eZ\\Publish\\SPI\\Persistence\\Content\\Type\\Handler');
        $this->persistenceHandlerMock->expects($this->once())->method('contentTypeHandler')->will($this->returnValue($innerHandlerMock));
        $innerHandlerMock->expects($this->once())->method('unlink')->with(22, 44, SPIType::STATUS_DRAFT)->will($this->returnValue(true));
        $handler = $this->persistenceCacheHandler->contentTypeHandler();
        $handler->unlink(22, 44, SPIType::STATUS_DRAFT);
    }