From 13e66393f11b2e94457465ab75e56b08050553ed Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Thu, 12 Mar 2015 23:29:21 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@31764 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/general/archives.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/phpunit/tests/general/archives.php b/tests/phpunit/tests/general/archives.php index 20a14d7583..23d1131223 100644 --- a/tests/phpunit/tests/general/archives.php +++ b/tests/phpunit/tests/general/archives.php @@ -16,6 +16,10 @@ class Tests_General_Archives extends WP_UnitTestCase { function test_get_archives_cache() { global $wpdb; + if ( is_multisite() ) { + $this->markTestSkipped( 'Not testable in MS: wpmu_create_blog() defines WP_INSTALLING, which causes cache misses.' ); + } + $this->factory->post->create_many( 15, array( 'post_type' => 'post' ) ); wp_cache_delete( 'last_changed', 'posts' ); $this->assertFalse( wp_cache_get( 'last_changed', 'posts' ) );