/** * @dataProvider testProcessCallbackApprovedProvider */ public function testProcessCallbackApproved(array $callback) { list($paymentTransaction, $callbackResponse) = parent::testProcessCallbackApproved($callback); $this->assertEquals(PaymentTransaction::PROCESSOR_CALLBACK, $paymentTransaction->getProcessorType()); $this->assertEquals($callbackResponse->getType(), $paymentTransaction->getProcessorName()); return array($paymentTransaction, $callbackResponse); }
/** * {@inheritdoc} */ protected function getPaymentTransaction() { return parent::getPaymentTransaction()->setStatus(PaymentTransaction::STATUS_PROCESSING); }