Make WordPress Core


Ignore:
Timestamp:
03/02/2014 10:34:58 AM (11 years ago)
Author:
SergeyBiryukov
Message:

Skip import tests if WordPress Importer plugin is missing.

props mattheu.
fixes #27250.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/import/import.php

    r25002 r27349  
    1515
    1616        add_filter( 'import_allow_create_users', '__return_true' );
     17
     18        if ( ! file_exists( DIR_TESTDATA . '/plugins/wordpress-importer/wordpress-importer.php' ) ) {
     19            $this->markTestSkipped( 'WordPress Importer plugin is not installed.' );
     20        }
     21
    1722        require_once DIR_TESTDATA . '/plugins/wordpress-importer/wordpress-importer.php';
    1823
Note: See TracChangeset for help on using the changeset viewer.