@@ -79,20 +79,19 @@ protected function setUp(): void
79
79
/**
80
80
* @param string $orderStatus
81
81
* @param string $paymentAction
82
- * @param mixed $result
83
82
*
84
83
* @return void
85
84
* @dataProvider getConfigPaymentActionProvider
86
85
*/
87
- public function testGetConfigPaymentAction ($ orderStatus , $ paymentAction, $ result ): void
86
+ public function testGetConfigPaymentAction ($ orderStatus , $ paymentAction ): void
88
87
{
89
88
90
89
if ($ orderStatus != 'pending ' ) {
91
90
$ this ->scopeConfig
92
91
->method ('getValue ' )
93
- ->willReturnOnConsecutiveCalls ($ orderStatus , $ result );
92
+ ->willReturnOnConsecutiveCalls ($ orderStatus , $ paymentAction );
94
93
}
95
- $ this ->assertEquals ($ result , $ this ->methodFree ->getConfigPaymentAction ());
94
+ $ this ->assertEquals ($ paymentAction , $ this ->methodFree ->getConfigPaymentAction ());
96
95
}
97
96
98
97
/**
@@ -150,10 +149,10 @@ public function getIsAvailableProvider(): array
150
149
public function getConfigPaymentActionProvider (): array
151
150
{
152
151
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 ' ]
157
156
];
158
157
}
159
158
}
0 commit comments