test: Fix unit tests

This commit is contained in:
Vlad Olaru 2024-09-19 20:20:46 +03:00
parent 9a876647f1
commit b03a347883
No known key found for this signature in database
1 changed files with 7 additions and 2 deletions

View File

@ -7,8 +7,6 @@
declare(strict_types=1); declare(strict_types=1);
use Automattic\WooCommerce\Internal\Admin\Onboarding\OnboardingProfile;
use Automattic\WooCommerce\Admin\Features\OnboardingTasks\TaskList; use Automattic\WooCommerce\Admin\Features\OnboardingTasks\TaskList;
use Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks\WooCommercePayments; use Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks\WooCommercePayments;
@ -167,3 +165,10 @@ class Fake_WC_Payments_Gateway extends WC_Payment_Gateway {
$this->partially_onboarded = $partially_onboarded; $this->partially_onboarded = $partially_onboarded;
} }
} }
if ( ! class_exists( '\WC_Payments' ) ) {
/**
* Fake WooPayments main class for testing.
*/
class WC_Payments {}
}