File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
BusinessExtension/Test/Unit/Block/Adminhtml Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 11
11
use Meta \BusinessExtension \Helper \FBEHelper ;
12
12
use Meta \BusinessExtension \Model \Api \CustomApiKey \ApiKeyService ;
13
13
use Meta \BusinessExtension \Model \System \Config as SystemConfig ;
14
+ use Meta \BusinessExtension \Api \AdobeCloudConfigInterface ;
14
15
use PHPUnit \Framework \MockObject \MockObject ;
15
16
use PHPUnit \Framework \TestCase ;
16
17
@@ -56,6 +57,11 @@ class SetupTest extends TestCase
56
57
*/
57
58
private $ apiKeyService ;
58
59
60
+ /**
61
+ * @var MockObject
62
+ */
63
+ private $ adobeCloudConfigInterface ;
64
+
59
65
public function testGetApiKey ()
60
66
{
61
67
$ apiKey = 'sample-api-key ' ;
@@ -95,6 +101,10 @@ public function testGetApiKey()
95
101
$ this ->apiKeyService ->method ('upsertApiKey ' )
96
102
->willReturn ($ apiKey );
97
103
104
+ $ this ->adobeCloudConfigInterface = $ this ->getMockBuilder (AdobeCloudConfigInterface::class)
105
+ ->disableOriginalConstructor ()
106
+ ->getMock ();
107
+
98
108
$ setup = new Setup (
99
109
$ this ->context ,
100
110
$ this ->requestInterface ,
@@ -104,6 +114,7 @@ public function testGetApiKey()
104
114
$ this ->websiteCollectionFactory ,
105
115
$ this ->commerceExtensionHelper ,
106
116
$ this ->apiKeyService ,
117
+ $ this ->adobeCloudConfigInterface ,
107
118
[]
108
119
);
109
120
Original file line number Diff line number Diff line change @@ -62,6 +62,13 @@ class PaymentMethod extends AbstractMethod
62
62
*/
63
63
protected $ _canRefund = true ;
64
64
65
+ /**
66
+ * Allow refunds
67
+ *
68
+ * @var bool
69
+ */
70
+ protected $ _canRefundInvoicePartial = true ;
71
+
65
72
/**
66
73
* Allow voids
67
74
*
You can’t perform that action at this time.
0 commit comments