From 4b83b005d21c6ea33415bc7d69089879b0d00971 Mon Sep 17 00:00:00 2001 From: boonebgorges Date: Fri, 25 Sep 2015 13:54:02 +0000 Subject: [PATCH] Don't run `get_page_of_comment()` cache test on Multisite. `get_page_of_comment()` uses `get_option()`, and WP_INSTALLING earlier in the test suite causes `get_option()` to miss the cache. See #31130. See #11334. git-svn-id: https://develop.svn.wordpress.org/trunk@34540 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/comment/getPageOfComment.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/phpunit/tests/comment/getPageOfComment.php b/tests/phpunit/tests/comment/getPageOfComment.php index a4fd4cd865..d749076a86 100644 --- a/tests/phpunit/tests/comment/getPageOfComment.php +++ b/tests/phpunit/tests/comment/getPageOfComment.php @@ -60,6 +60,11 @@ class Tests_Comment_GetPageOfComment extends WP_UnitTestCase { * @ticket 11334 */ public function test_subsequent_calls_should_hit_cache() { + // `get_page_of_comment()` calls `get_option()`, which is not properly cached when WP_INSTALLING. + if ( is_multisite() ) { + $this->markTestSkipped( 'Not testable in MS: wpmu_create_blog() defines WP_INSTALLING, which causes cache misses.' ); + } + global $wpdb; $p = $this->factory->post->create();