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
This commit is contained in:
boonebgorges 2015-09-25 13:54:02 +00:00
parent 5e95cd1db5
commit 4b83b005d2

View File

@ -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();