Skip to content

Commit

Permalink
test: Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vladolaru committed Aug 28, 2024
1 parent 9b801b1 commit 5bc6d4d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/unit/test-class-wc-payments-onboarding-service.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,13 +193,13 @@ public function test_add_admin_body_classes_when_onboarding() {
public function test_set_test_mode() {
$this->onboarding_service->set_test_mode( true );

$this->assertTrue( get_option( 'wcpay_onboarding_test_mode' ) );
$this->assertEquals( 'yes', get_option( WC_Payments_Onboarding_Service::TEST_MODE_OPTION, 'no' ) );

$this->onboarding_service->set_test_mode( false );

$this->assertFalse( get_option( 'wcpay_onboarding_test_mode' ) );
$this->assertEquals( 'no', get_option( WC_Payments_Onboarding_Service::TEST_MODE_OPTION, 'no' ) );

delete_option( 'wcpay_onboarding_test_mode' );
delete_option( WC_Payments_Onboarding_Service::TEST_MODE_OPTION );
}

/**
Expand Down

0 comments on commit 5bc6d4d

Please sign in to comment.