Skip to content

Commit 7b3f50d

Browse files
committed
ACP2E-1120: extend new statuses that can apply for new placed order with free payment
1 parent 0eb49dc commit 7b3f50d

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

app/code/Magento/Payment/Test/Unit/Model/Method/FreeTest.php

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,20 +79,19 @@ protected function setUp(): void
7979
/**
8080
* @param string $orderStatus
8181
* @param string $paymentAction
82-
* @param mixed $result
8382
*
8483
* @return void
8584
* @dataProvider getConfigPaymentActionProvider
8685
*/
87-
public function testGetConfigPaymentAction($orderStatus, $paymentAction, $result): void
86+
public function testGetConfigPaymentAction($orderStatus, $paymentAction): void
8887
{
8988

9089
if ($orderStatus != 'pending') {
9190
$this->scopeConfig
9291
->method('getValue')
93-
->willReturnOnConsecutiveCalls($orderStatus, $result);
92+
->willReturnOnConsecutiveCalls($orderStatus, $paymentAction);
9493
}
95-
$this->assertEquals($result, $this->methodFree->getConfigPaymentAction());
94+
$this->assertEquals($paymentAction, $this->methodFree->getConfigPaymentAction());
9695
}
9796

9897
/**
@@ -150,10 +149,10 @@ public function getIsAvailableProvider(): array
150149
public function getConfigPaymentActionProvider(): array
151150
{
152151
return [
153-
['pending', 'payment_action', null],
154-
['new', 'payment_action', null],
155-
['processing', 'payment_action', null],
156-
['processing', 'payment_action', 'payment_action']
152+
['pending', null],
153+
['new', null],
154+
['processing', null],
155+
['processing', 'payment_action']
157156
];
158157
}
159158
}

0 commit comments

Comments
 (0)