mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-02 03:34:33 +00:00
Skip import tests if WordPress Importer plugin is missing.
props mattheu. fixes #27250. git-svn-id: https://develop.svn.wordpress.org/trunk@27349 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -13,6 +13,10 @@ class Tests_Import_Parser extends WP_Import_UnitTestCase {
|
||||
if ( ! defined( 'WP_LOAD_IMPORTERS' ) )
|
||||
define( 'WP_LOAD_IMPORTERS', true );
|
||||
|
||||
if ( ! file_exists( DIR_TESTDATA . '/plugins/wordpress-importer/wordpress-importer.php' ) ) {
|
||||
$this->markTestSkipped( 'WordPress Importer plugin is not installed.' );
|
||||
}
|
||||
|
||||
require_once DIR_TESTDATA . '/plugins/wordpress-importer/wordpress-importer.php';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user