From db6b7c6257f40c27f220c9efce9d41eb13c0d684 Mon Sep 17 00:00:00 2001 From: James Nylen Date: Wed, 19 Jul 2017 10:37:41 +0000 Subject: [PATCH] Tests: Be more helpful when the `wordpress-importer` plugin is missing. Link to some documentation that explains the problem and how to resolve it. Props enrico.sorcinelli. Fixes #41345. git-svn-id: https://develop.svn.wordpress.org/trunk@41090 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 93034441fb..4a867c4b01 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( 'WordPress Importer plugin is not installed.' ); + $this->fail( 'This test requires the WordPress Importer plugin to be installed. 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 890fd0ac22..d2ca78d2a1 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( 'WordPress Importer plugin is not installed.' ); + $this->fail( 'This test requires the WordPress Importer plugin to be installed. 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 bf468a1d3e..4ad9f11544 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( 'WordPress Importer plugin is not installed.' ); + $this->fail( 'This test requires the WordPress Importer plugin to be installed. See: https://make.wordpress.org/core/handbook/contribute/git/#unit-tests' ); } require_once DIR_TESTDATA . '/plugins/wordpress-importer/wordpress-importer.php';