Make WordPress Core


Ignore:
Timestamp:
01/25/2015 12:59:00 PM (10 years ago)
Author:
boonebgorges
Message:

Do not run certain cache-hit tests on multisite.

These tests fail on multisite if run after a test that creates
wpmu_create_blog(), because wpmu_create_blog() defines WP_INSTALLING,
which results in unexpected cache misses. See [28965] for a similar fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/post/getPostClass.php

    r31271 r31280  
    5151        global $wpdb;
    5252
     53        if ( is_multisite() ) {
     54            $this->markTestSkipped( 'Not testable in MS: wpmu_create_blog() defines WP_INSTALLING, which causes cache misses.' );
     55        }
     56
    5357        register_taxonomy( 'wptests_tax', 'post' );
    5458        wp_set_post_terms( $this->post_id, array( 'foo', 'bar' ), 'wptests_tax' );
Note: See TracChangeset for help on using the changeset viewer.