test: Fix unit tests
This commit is contained in:
parent
9a876647f1
commit
b03a347883
|
@ -7,8 +7,6 @@
|
|||
|
||||
declare(strict_types=1);
|
||||
|
||||
|
||||
use Automattic\WooCommerce\Internal\Admin\Onboarding\OnboardingProfile;
|
||||
use Automattic\WooCommerce\Admin\Features\OnboardingTasks\TaskList;
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
if ( ! class_exists( '\WC_Payments' ) ) {
|
||||
/**
|
||||
* Fake WooPayments main class for testing.
|
||||
*/
|
||||
class WC_Payments {}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue