Make WordPress Core

Changeset 27349


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.

Location:
trunk/tests/phpunit/tests/import
Files:
3 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
  • trunk/tests/phpunit/tests/import/parser.php

    r25002 r27349  
    1313        if ( ! defined( 'WP_LOAD_IMPORTERS' ) )
    1414            define( 'WP_LOAD_IMPORTERS', true );
     15
     16        if ( ! file_exists( DIR_TESTDATA . '/plugins/wordpress-importer/wordpress-importer.php' ) ) {
     17            $this->markTestSkipped( 'WordPress Importer plugin is not installed.' );
     18        }
    1519
    1620        require_once DIR_TESTDATA . '/plugins/wordpress-importer/wordpress-importer.php';
  • trunk/tests/phpunit/tests/import/postmeta.php

    r25002 r27349  
    1313        if ( ! defined( 'WP_LOAD_IMPORTERS' ) )
    1414            define( 'WP_LOAD_IMPORTERS', true );
     15
     16        if ( ! file_exists( DIR_TESTDATA . '/plugins/wordpress-importer/wordpress-importer.php' ) ) {
     17            $this->markTestSkipped( 'WordPress Importer plugin is not installed.' );
     18        }
    1519
    1620        require_once DIR_TESTDATA . '/plugins/wordpress-importer/wordpress-importer.php';
Note: See TracChangeset for help on using the changeset viewer.