From 5de42bb6d58fdee8aed4dab9d2ea965cb4092058 Mon Sep 17 00:00:00 2001
From: Patrick
Date: Mon, 25 Nov 2024 16:11:18 -0500
Subject: [PATCH 4/5] SP-1104: Remove admin option
---
etc/adminhtml/system.xml | 7 -------
1 file changed, 7 deletions(-)
diff --git a/etc/adminhtml/system.xml b/etc/adminhtml/system.xml
index 332e396..ca61dbd 100755
--- a/etc/adminhtml/system.xml
+++ b/etc/adminhtml/system.xml
@@ -121,13 +121,6 @@
Bitpay\BPCheckout\Model\Config\Source\Cancelstatus
-
-
-
- Redirect, then the customer will be redirected to BitPay to checkout, and return to the checkout page once the payment is made.
If this is set to Modal, the user will stay on your e-commerce site and complete the transaction.]]>
- Bitpay\BPCheckout\Model\Config\Source\Ux
-
-
From a7dce731ee9c550ef87a8b08de42f991672306da Mon Sep 17 00:00:00 2001
From: Patrick
Date: Mon, 25 Nov 2024 16:28:43 -0500
Subject: [PATCH 5/5] SP-1104: Fix tests
---
Test/Integration/Block/IndexTest.php | 8 --------
Test/Unit/Block/IndexTest.php | 10 ----------
Test/Unit/Model/BPRedirectTest.php | 3 +--
3 files changed, 1 insertion(+), 20 deletions(-)
diff --git a/Test/Integration/Block/IndexTest.php b/Test/Integration/Block/IndexTest.php
index 28a4206..32befff 100755
--- a/Test/Integration/Block/IndexTest.php
+++ b/Test/Integration/Block/IndexTest.php
@@ -62,14 +62,6 @@ public function testGetBitpayEnv(): void
$this->assertEquals('test', $this->index->getBitpayEnv());
}
- public function testGetModalParam(): void
- {
- $requst = $this->context->getRequest();
- $requst->setParams(['m' => '1']);
-
- $this->assertEquals(1, $this->index->getModalParam());
- }
-
public function testOrderId(): void
{
$requst = $this->context->getRequest();
diff --git a/Test/Unit/Block/IndexTest.php b/Test/Unit/Block/IndexTest.php
index fe1f3a1..5b49c81 100755
--- a/Test/Unit/Block/IndexTest.php
+++ b/Test/Unit/Block/IndexTest.php
@@ -67,16 +67,6 @@ public function testGetBitpayEnv(): void
$this->assertEquals(self::ENV, $this->index->getBitpayEnv());
}
- public function testGetModalParam(): void
- {
- $this->request->expects($this->once())
- ->method('getParam')
- ->with('m')
- ->willReturn(1);
-
- $this->assertEquals(1, $this->index->getModalParam());
- }
-
public function testGetOrderId(): void
{
$this->request->expects($this->once())->method('getParam')
diff --git a/Test/Unit/Model/BPRedirectTest.php b/Test/Unit/Model/BPRedirectTest.php
index d01819b..39d8c94 100755
--- a/Test/Unit/Model/BPRedirectTest.php
+++ b/Test/Unit/Model/BPRedirectTest.php
@@ -142,11 +142,10 @@ public function setUp(): void
}
/**
- * @param $ux
* @return void
* @throws \Exception
*/
- public function testExecute($ux): void
+ public function testExecute(): void
{
$incrementId = '0000012121';
$bitpayToken = 'A32nRffe34dF2312vmm';