mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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:
parent
5e95cd1db5
commit
4b83b005d2
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user