eZ\Publish\Core\Persistence\Cache\Tests\TransactionHandlerTest::testCommit PHP Method

testCommit() public method

public testCommit ( )
    public function testCommit()
    {
        $this->loggerMock->expects($this->once())->method('logCall');
        $this->cacheMock->expects($this->never())->method($this->anything());
        $innerHandlerMock = $this->getMock('eZ\\Publish\\SPI\\Persistence\\TransactionHandler');
        $this->persistenceHandlerMock->expects($this->once())->method('transactionHandler')->will($this->returnValue($innerHandlerMock));
        $innerHandlerMock->expects($this->once())->method('commit');
        $handler = $this->persistenceCacheHandler->transactionHandler();
        $handler->commit();
    }