WordPress.org

Make WordPress Core

Changeset 31764


Ignore:
Timestamp:
03/12/2015 11:29:21 PM (7 years ago)
Author:
boonebgorges
Message:

Don't run wp_get_archives() cache test on multisite.

The introduction of a Customizer test that creates a new blog [31707] causes
WP_INSTALLING to be set by the time the wp_get_archives() tests run. This,
in turn, causes the query counts to vary in unpredictable ways.

See #31130.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/general/archives.php

    r25002 r31764  
    1616    function test_get_archives_cache() {
    1717        global $wpdb;
     18
     19        if ( is_multisite() ) {
     20            $this->markTestSkipped( 'Not testable in MS: wpmu_create_blog() defines WP_INSTALLING, which causes cache misses.' );
     21        }
    1822
    1923        $this->factory->post->create_many( 15, array( 'post_type' => 'post' ) );
Note: See TracChangeset for help on using the changeset viewer.