eZ\Publish\Core\Persistence\Legacy\Tests\TransactionHandlerTest::testCommitException PHP Method

testCommitException() public method

public testCommitException ( )
    public function testCommitException()
    {
        $handler = $this->getTransactionHandler();
        $this->getDatabaseHandlerMock()->expects($this->once())->method('commit')->will($this->throwException(new Exception('test')));
        $this->getContentTypeHandlerMock()->expects($this->never())->method($this->anything());
        $this->getLanguageHandlerMock()->expects($this->never())->method($this->anything());
        $handler->commit();
    }