Make WordPress Core


Ignore:
Timestamp:
11/25/2013 10:49:51 PM (11 years ago)
Author:
wonderboymusic
Message:

When setting WP_TESTS_FORCE_KNOWN_BUGS to true, it is preferable that some forced tests are still skipped when they call classes or functions that do not exist, producing fatal errors.

Fixes #26248.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/export/class-wp-export-query.php

    r25002 r26370  
    88 */
    99class Test_WP_Export_Query extends WP_UnitTestCase {
     10    function setUp() {
     11        if ( ! class_exists( 'WP_Export_Query' ) ) {
     12            $this->markTestSkipped( "WP_Export_Query class doesn't exist" );
     13        }
     14
     15        parent::setUp();
     16    }
     17
    1018    function test_WP_Export_Query_should_be_initialized_with_an_array() {
    1119        $export = new WP_Export_Query( array( 'author' => 'all' ) );
Note: See TracChangeset for help on using the changeset viewer.