Make WordPress Core


Ignore:
Timestamp:
09/25/2015 01:54:02 PM (9 years ago)
Author:
boonebgorges
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/comment/getPageOfComment.php

    r34535 r34540  
    6161     */
    6262    public function test_subsequent_calls_should_hit_cache() {
     63        // `get_page_of_comment()` calls `get_option()`, which is not properly cached when WP_INSTALLING.
     64        if ( is_multisite() ) {
     65            $this->markTestSkipped( 'Not testable in MS: wpmu_create_blog() defines WP_INSTALLING, which causes cache misses.' );
     66        }
     67
    6368        global $wpdb;
    6469
Note: See TracChangeset for help on using the changeset viewer.