From dc871462d1e151075e43638d0401072e9cedd484 Mon Sep 17 00:00:00 2001 From: Fabien MILLERAND Date: Mon, 11 Nov 2024 15:43:45 +0100 Subject: [PATCH] Fix lint --- tests/OrderStatusEventTest.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tests/OrderStatusEventTest.php b/tests/OrderStatusEventTest.php index 5a88c7c..efb587b 100644 --- a/tests/OrderStatusEventTest.php +++ b/tests/OrderStatusEventTest.php @@ -74,14 +74,19 @@ public function test_change_order_status() { wp_delete_user( $user_id ); } - public static function test_micros_based_on_currency( array $props = [] ) { + /** + * Test get_transaction_micros + * + * @return void + */ + public static function test_get_transaction_micros_based_on_currency() { update_option( 'woocommerce_currency', 'USD' ); - static::assertEquals( Events::get_transaction_micros( 39.00 ), 390000); + static::assertEquals( Events::get_transaction_micros( 39.00 ), 390000 ); update_option( 'woocommerce_currency', 'JPY' ); - static::assertEquals( Events::get_transaction_micros( 39 ), 39000000); + static::assertEquals( Events::get_transaction_micros( 39 ), 39000000 ); }