eZ\Publish\Core\Persistence\Cache\Tests\ContentTypeHandlerTest::testUpdateDraft PHP Method

testUpdateDraft() public method

public testUpdateDraft ( )
    public function testUpdateDraft()
    {
        $this->loggerMock->expects($this->once())->method('logCall');
        $this->cacheMock->expects($this->never())->method($this->anything());
        $innerHandler = $this->getMock('eZ\\Publish\\SPI\\Persistence\\Content\\Type\\Handler');
        $this->persistenceHandlerMock->expects($this->once())->method('contentTypeHandler')->will($this->returnValue($innerHandler));
        $innerHandler->expects($this->once())->method('update')->with(55, SPIType::STATUS_DRAFT, $this->isInstanceOf('eZ\\Publish\\SPI\\Persistence\\Content\\Type\\UpdateStruct'))->will($this->returnValue(new SPIType(array('id' => 55, 'name' => 'Forum', 'identifier' => 'forum'))));
        $handler = $this->persistenceCacheHandler->contentTypeHandler();
        $handler->update(55, SPIType::STATUS_DRAFT, new SPITypeUpdateStruct());
    }