WordPress.org

Make WordPress Core

Changeset 41090


Ignore:
Timestamp:
07/19/2017 10:37:41 AM (4 years ago)
Author:
jnylen0
Message:

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.

Location:
trunk/tests/phpunit/tests/import
Files:
3 edited

Legend:

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

    r40531 r41090  
    1919
    2020        if ( ! file_exists( DIR_TESTDATA . '/plugins/wordpress-importer/wordpress-importer.php' ) ) {
    21             $this->fail( 'WordPress Importer plugin is not installed.' );
     21            $this->fail( 'This test requires the WordPress Importer plugin to be installed. See: https://make.wordpress.org/core/handbook/contribute/git/#unit-tests' );
    2222        }
    2323
  • trunk/tests/phpunit/tests/import/parser.php

    r40532 r41090  
    1717
    1818        if ( ! file_exists( DIR_TESTDATA . '/plugins/wordpress-importer/wordpress-importer.php' ) ) {
    19             $this->fail( 'WordPress Importer plugin is not installed.' );
     19            $this->fail( 'This test requires the WordPress Importer plugin to be installed. See: https://make.wordpress.org/core/handbook/contribute/git/#unit-tests' );
    2020        }
    2121
  • trunk/tests/phpunit/tests/import/postmeta.php

    r40532 r41090  
    1717
    1818        if ( ! file_exists( DIR_TESTDATA . '/plugins/wordpress-importer/wordpress-importer.php' ) ) {
    19             $this->fail( 'WordPress Importer plugin is not installed.' );
     19            $this->fail( 'This test requires the WordPress Importer plugin to be installed. See: https://make.wordpress.org/core/handbook/contribute/git/#unit-tests' );
    2020        }
    2121
Note: See TracChangeset for help on using the changeset viewer.