From 8fe419340a0c246a1c7f387c0c32fdfab0656e1b Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Thu, 27 Jul 2017 14:00:16 +0000 Subject: [PATCH] Build/Test Tools: Clarify the error message when running the test suite without the WordPress Importer plugin present in the test suite. See #41345 git-svn-id: https://develop.svn.wordpress.org/trunk@41169 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/import/import.php | 2 +- tests/phpunit/tests/import/parser.php | 2 +- tests/phpunit/tests/import/postmeta.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/phpunit/tests/import/import.php b/tests/phpunit/tests/import/import.php index 4a867c4b01..97115c3d7d 100644 --- a/tests/phpunit/tests/import/import.php +++ b/tests/phpunit/tests/import/import.php @@ -18,7 +18,7 @@ class Tests_Import_Import extends WP_Import_UnitTestCase { add_filter( 'import_allow_create_users', '__return_true' ); if ( ! file_exists( DIR_TESTDATA . '/plugins/wordpress-importer/wordpress-importer.php' ) ) { - $this->fail( 'This test requires the WordPress Importer plugin to be installed. See: https://make.wordpress.org/core/handbook/contribute/git/#unit-tests' ); + $this->fail( 'This test requires the WordPress Importer plugin to be installed in the test suite. See: https://make.wordpress.org/core/handbook/contribute/git/#unit-tests' ); } require_once DIR_TESTDATA . '/plugins/wordpress-importer/wordpress-importer.php'; diff --git a/tests/phpunit/tests/import/parser.php b/tests/phpunit/tests/import/parser.php index d2ca78d2a1..5501d40d44 100644 --- a/tests/phpunit/tests/import/parser.php +++ b/tests/phpunit/tests/import/parser.php @@ -16,7 +16,7 @@ class Tests_Import_Parser extends WP_Import_UnitTestCase { define( 'WP_LOAD_IMPORTERS', true ); if ( ! file_exists( DIR_TESTDATA . '/plugins/wordpress-importer/wordpress-importer.php' ) ) { - $this->fail( 'This test requires the WordPress Importer plugin to be installed. See: https://make.wordpress.org/core/handbook/contribute/git/#unit-tests' ); + $this->fail( 'This test requires the WordPress Importer plugin to be installed in the test suite. See: https://make.wordpress.org/core/handbook/contribute/git/#unit-tests' ); } require_once DIR_TESTDATA . '/plugins/wordpress-importer/wordpress-importer.php'; diff --git a/tests/phpunit/tests/import/postmeta.php b/tests/phpunit/tests/import/postmeta.php index 4ad9f11544..ef795cb38c 100644 --- a/tests/phpunit/tests/import/postmeta.php +++ b/tests/phpunit/tests/import/postmeta.php @@ -16,7 +16,7 @@ class Tests_Import_Postmeta extends WP_Import_UnitTestCase { define( 'WP_LOAD_IMPORTERS', true ); if ( ! file_exists( DIR_TESTDATA . '/plugins/wordpress-importer/wordpress-importer.php' ) ) { - $this->fail( 'This test requires the WordPress Importer plugin to be installed. See: https://make.wordpress.org/core/handbook/contribute/git/#unit-tests' ); + $this->fail( 'This test requires the WordPress Importer plugin to be installed in the test suite. See: https://make.wordpress.org/core/handbook/contribute/git/#unit-tests' ); } require_once DIR_TESTDATA . '/plugins/wordpress-importer/wordpress-importer.php';