Skip to content

Commit

Permalink
v1.8.5
Browse files Browse the repository at this point in the history
  • Loading branch information
mlafernandes committed Oct 30, 2024
1 parent 81d0bd2 commit 8fbefb7
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Tests/Unit/Gateway/Config/ConfigCheckoutCreditsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ public function testGetBannerTextHowToUse()
);

$result = $configCheckoutCredits->getBannerText($textId, $storeId);

$this->assertEquals('Compre em até 12x sem cartão de crédito', $result);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ private function getTestClass(Sdk $sdkMock): CreateOrderPaymentCustomClient
->willReturn($sdkMock);

return new CreateOrderPaymentCustomClient(
$logger,
$logger,
$config,
$json,
$quoteMpPaymentRepository,
Expand Down
10 changes: 5 additions & 5 deletions Tests/Unit/Gateway/Request/MpDeviceSessionIdTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ public function testBuildWithSession()
->method('getAdditionalInformation')
->with(MpDeviceSessionId::MP_DEVICE_SESSION_ID)
->willReturn('arm:1234');

$paymentDataObjectMock = $this->createMock(PaymentDataObject::class);
$paymentDataObjectMock->expects($this->once())
->method('getPayment')
->willReturn($paymentInterceptorMock);

$class = new MpDeviceSessionId();

$result = $class->build(['payment' => $paymentDataObjectMock]);
Expand All @@ -35,12 +35,12 @@ public function testBuildWithoutSession()
->method('getAdditionalInformation')
->with(MpDeviceSessionId::MP_DEVICE_SESSION_ID)
->willReturn(null);

$paymentDataObjectMock = $this->createMock(PaymentDataObject::class);
$paymentDataObjectMock->expects($this->once())
->method('getPayment')
->willReturn($paymentInterceptorMock);

$class = new MpDeviceSessionId();

$result = $class->build(['payment' => $paymentDataObjectMock]);
Expand All @@ -51,7 +51,7 @@ public function testBuildWithoutSession()
public function testBuildWithoutPayment()
{
$this->expectException(\InvalidArgumentException::class);

$class = new MpDeviceSessionId();
$class->build([]);
}
Expand Down
10 changes: 9 additions & 1 deletion Tests/Unit/Model/Notification/Refund/CheckoutCustomTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,15 @@ public function testPartialRefundWithSingleCard()
$creditMemo = $mocks['creditMemo'];

// VALIDATE CREDITMEMO DURING REFUND
$creditMemo->expects($this->any())
$this->order->expects($this->once())
->method('getTotalPaid')
->willReturn(1000);

$this->order->expects($this->once())
->method('getTotalRefunded')
->willReturn(500);

$creditMemo->expects($this->once())
->method('getBaseGrandTotal')
->willReturn(130.00);

Expand Down
Empty file modified bin/validate-version.sh
100755 → 100644
Empty file.

0 comments on commit 8fbefb7

Please sign in to comment.