Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
millerf committed Nov 11, 2024
1 parent 2d105d0 commit dc87146
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tests/OrderStatusEventTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}


Expand Down

0 comments on commit dc87146

Please sign in to comment.