Skip to content

Commit 5c3f8a5

Browse files
committed
Update unit test function to fix error order status
1 parent ef499d8 commit 5c3f8a5

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

tests/unit/orderFlow/OrderStatusesTest.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,12 @@ public function test_payment_complete( string $expected_status ) {
195195
$this->markTestSkipped( 'Reepay subscriptions activated. It\'s changing default function behavior via filter' );
196196
}
197197

198-
$this->order_generator->set_prop( 'payment_method', reepay()->gateways()->checkout() );
198+
$this->order_generator->set_props(
199+
array(
200+
'payment_method' => reepay()->gateways()->checkout(),
201+
'status' => 'on-hold',
202+
)
203+
);
199204

200205
self::$options->set_options(
201206
array(

0 commit comments

Comments
 (0)