Skip to content

Commit

Permalink
PHP unit tests: remove WP_RUN_CORE_TESTS const (#65631)
Browse files Browse the repository at this point in the history
Co-authored-by: ramonjd <[email protected]>
Co-authored-by: andrewserong <[email protected]>
  • Loading branch information
3 people authored Sep 25, 2024
1 parent b5129a2 commit e94673a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions phpunit/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down

0 comments on commit e94673a

Please sign in to comment.