From aa0da157c147804aeb5801d7e942126f70210086 Mon Sep 17 00:00:00 2001 From: ramon Date: Wed, 25 Sep 2024 14:59:28 +1000 Subject: [PATCH] A recent update in core caused the php tests to fail. Removing this constant will negate the check for IMPORTER_PLUGIN_FOR_TESTS, which is required for core tests, but not Gutenberg (right now) See: https://core.trac.wordpress.org/ticket/61530#comment:55 --- phpunit/bootstrap.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/phpunit/bootstrap.php b/phpunit/bootstrap.php index 5d078193f0c3bf..36746d05669519 100644 --- a/phpunit/bootstrap.php +++ b/phpunit/bootstrap.php @@ -24,12 +24,6 @@ define( 'GUTENBERG_DIR_TESTDATA', __DIR__ . '/data/' ); define( 'GUTENBERG_DIR_TESTFIXTURES', __DIR__ . '/fixtures/' ); -// Pretend that these are Core unit tests. This is needed so that -// wp_theme_has_theme_json() does not cache its return value between each test. -if ( ! defined( 'WP_RUN_CORE_TESTS' ) ) { - define( 'WP_RUN_CORE_TESTS', true ); -} - // Require composer dependencies. require_once dirname( __DIR__ ) . '/vendor/autoload.php';