@@ -105,7 +105,8 @@ public function testGetConfigPaymentAction($orderStatus, $paymentAction, $result
105
105
->willReturn ($ stateStatuses );
106
106
$ this ->scopeConfig
107
107
->method ('getValue ' )
108
- ->willReturnOnConsecutiveCalls ($ orderStatus , $ paymentAction );
108
+ ->withConsecutive (['payment/free/order_status ' ], ['payment/free/ ' .$ paymentAction ])
109
+ ->willReturnOnConsecutiveCalls ($ orderStatus , $ result );
109
110
$ this ->assertEquals ($ result , $ this ->methodFree ->getConfigPaymentAction ());
110
111
}
111
112
@@ -164,10 +165,12 @@ public function getIsAvailableProvider(): array
164
165
public function getConfigPaymentActionProvider (): array
165
166
{
166
167
return [
167
- ['pending ' , 'action ' , null , ['pending ' => 'Pending ' ]],
168
- ['new ' , 'action ' , null , ['pending ' => 'Pending ' , 'new ' => 'New ' ]],
168
+ ['pending ' , 'payment_action ' , null , ['pending ' => 'Pending ' ]],
169
+ ['new ' , 'payment_action ' , null , ['pending ' => 'Pending ' , 'new ' => 'New ' ]],
169
170
['new ' , 'payment_action ' , 'payment_action ' , ['pending ' => 'Pending ' ]],
170
- ['processing ' , 'payment_action ' , 'payment_action ' , ['pending ' => 'Pending ' ]]
171
+ ['processing ' , 'payment_action ' , 'payment_action ' , ['pending ' => 'Pending ' ]],
172
+ ['processing ' , 'payment_action ' , null , ['pending ' => 'Pending ' , 'processing ' => 'Processing ' ]],
173
+ ['processing ' , 'payment_action ' , 'payment_action ' , ['pending ' => 'Pending ' , 'processing ' => 'Processing ' ]]
171
174
];
172
175
}
173
176
}
0 commit comments