From 1319950ca9ddfcd379f7d430d1e08070bb698c66 Mon Sep 17 00:00:00 2001 From: Igor Zinovyev Date: Tue, 11 Jun 2024 18:01:05 +0300 Subject: [PATCH] Not loading the mock feature support when testing with Jetpack. --- projects/plugins/jetpack/tests/php/lib/mock-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/plugins/jetpack/tests/php/lib/mock-functions.php b/projects/plugins/jetpack/tests/php/lib/mock-functions.php index 46988da979655..0d67d385731c0 100644 --- a/projects/plugins/jetpack/tests/php/lib/mock-functions.php +++ b/projects/plugins/jetpack/tests/php/lib/mock-functions.php @@ -21,7 +21,7 @@ function has_blog_sticker( $sticker ) { function wp_cache_is_enabled() {} } -if ( ! function_exists( 'wpcom_site_has_feature' ) ) { +if ( ! function_exists( 'wpcom_site_has_feature' ) && false === getenv( 'WITH_WPCOMSH' ) ) { /** * Mock feature support. *