Make WordPress Core


Ignore:
Timestamp:
10/30/2024 11:27:08 PM (15 months ago)
Author:
peterwilsoncc
Message:

Tests/Build tools: Only fail importer tests if plugin is missing.

Reverts an earlier change to the test suite in which the PHPUnit tests could not run if the importer plugin was not available.

This update allows the test suite to run and will fail importer tests if the plugin is not available.

Follow up to r59085.

Props peterwilsoncc, azaozz.
See #62325.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/bootstrap.php

    r59086 r59326  
    217217define( 'IMPORTER_PLUGIN_FOR_TESTS', DIR_TESTDATA . '/plugins/wordpress-importer/wordpress-importer.php' );
    218218
    219 if ( defined( 'WP_RUN_CORE_TESTS' ) && WP_RUN_CORE_TESTS && ! file_exists( IMPORTER_PLUGIN_FOR_TESTS ) ) {
    220     echo 'The test suite requires the WordPress Importer plugin to be available in the `/data/plugins/` directory.'
    221         . ' See: https://make.wordpress.org/core/handbook/contribute/git/#unit-tests' . PHP_EOL,
    222     exit( 1 );
    223 }
    224 
    225219define( 'WP_LANG_DIR', realpath( DIR_TESTDATA . '/languages' ) );
    226220
Note: See TracChangeset for help on using the changeset viewer.