Skip to content

Commit

Permalink
Merge branch 'ECP-8715' of github.com:Adyen/adyen-magento2 into ECP-8715
Browse files Browse the repository at this point in the history
  • Loading branch information
hossam-adyen committed Feb 22, 2024
2 parents c302726 + 416a91e commit 8876e0e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Test/Unit/Helper/PaymentDetailsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
use Adyen\Payment\Logger\AdyenLogger;
use Adyen\Payment\Helper\Idempotency;
use Magento\Checkout\Model\Session;
use Adyen\Service\Checkout;
use Adyen\Service\Checkout\PaymentsApi;
use Adyen\Client;

class PaymentDetailsTest extends AbstractAdyenTestCase
Expand All @@ -47,7 +47,7 @@ protected function setUp(): void

$this->orderMock = $this->createMock(OrderInterface::class);
$this->paymentMock = $this->createMock(Payment::class);
$this->paymentsApiMock = $this->createMock(Checkout\PaymentsApi::class);
$this->paymentsApiMock = $this->createMock(PaymentsApi::class);
$this->adyenClientMock = $this->createMock(Client::class);

$this->orderMock->method('getPayment')->willReturn($this->paymentMock);
Expand All @@ -67,9 +67,11 @@ protected function setUp(): void

public function testInitiatePaymentDetailsSuccessfully()
{
$serviceMock = $this->createMock(PaymentsApi::class);
$adyenClientMock = $this->createMock(Client::class);
$payload = [
'details' => [
'detail_key1' => 'some-details',
'some_value' => 'some_details',
'merchantReference' => '00000000001'
],
'paymentData' => 'some_payment_data',
Expand Down

0 comments on commit 8876e0e

Please sign in to comment.