mirror of
git://develop.git.wordpress.org/
synced 2025-04-26 23:22:25 +02:00
Build/Test Tools: Only require the WordPress Importer plugin when running core tests.
This allows other users of the WordPress unit test suite framework to run their own unit tests without needing the WordPress Importer plugin, which should only be a requirement if running core tests. Follow-up to [59085]. Props bjorsch. Fixes #62106. git-svn-id: https://develop.svn.wordpress.org/trunk@59086 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
60a66de6ec
commit
7f4fd30dff
@ -216,7 +216,7 @@ define( 'DIR_TESTDATA', __DIR__ . '/../data' );
|
||||
define( 'DIR_TESTROOT', realpath( dirname( __DIR__ ) ) );
|
||||
define( 'IMPORTER_PLUGIN_FOR_TESTS', DIR_TESTDATA . '/plugins/wordpress-importer/wordpress-importer.php' );
|
||||
|
||||
if ( ! file_exists( IMPORTER_PLUGIN_FOR_TESTS ) ) {
|
||||
if ( defined( 'WP_RUN_CORE_TESTS' ) && WP_RUN_CORE_TESTS && ! file_exists( IMPORTER_PLUGIN_FOR_TESTS ) ) {
|
||||
echo 'The test suite requires the WordPress Importer plugin to be available in the `/data/plugins/` directory.'
|
||||
. ' See: https://make.wordpress.org/core/handbook/contribute/git/#unit-tests' . PHP_EOL,
|
||||
exit( 1 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user