Sonata\Tests\Component\Payment\DebugPaymentTest::getTransactionManager PHP Method

getTransactionManager() protected method

protected getTransactionManager ( ) : Sonata\Component\Payment\TransactionManagerInterface
return Sonata\Component\Payment\TransactionManagerInterface
    protected function getTransactionManager()
    {
        $transactionManager = $this->getMock('Sonata\\Component\\Payment\\TransactionManagerInterface');
        $transactionManager->expects($this->once())->method('create')->will($this->returnValue(new DebugPaymentTest_Transaction()));
        return $transactionManager;
    }