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

getTransactionHandler() protected method

Returns a mock object for the Content Gateway.
protected getTransactionHandler ( ) : TransactionHandler
return eZ\Publish\Core\Persistence\Legacy\TransactionHandler
    protected function getTransactionHandler()
    {
        if (!isset($this->transactionHandler)) {
            $this->transactionHandler = new TransactionHandler($this->getDatabaseHandlerMock(), $this->getContentTypeHandlerMock(), $this->getLanguageHandlerMock());
        }
        return $this->transactionHandler;
    }