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/term/getTerms.php

    r31276 r31280  
    382382    public function test_child_of_should_skip_query_when_specified_parent_is_not_found_in_hierarchy_cache() {
    383383        global $wpdb;
     384
     385        if ( is_multisite() ) {
     386            $this->markTestSkipped( 'Not testable in MS: wpmu_create_blog() defines WP_INSTALLING, which causes cache misses.' );
     387        }
    384388
    385389        register_taxonomy( 'wptests_tax', 'post', array( 'hierarchical' => true, ) );
     
    12041208        global $wpdb;
    12051209
     1210        if ( is_multisite() ) {
     1211            $this->markTestSkipped( 'Not testable in MS: wpmu_create_blog() defines WP_INSTALLING, which causes cache misses.' );
     1212        }
     1213
    12061214        register_taxonomy( 'wptests_tax', 'post', array( 'hierarchical' => true, ) );
    12071215
Note: See TracChangeset for help on using the changeset viewer.