Skip to content

Commit 2fc9367

Browse files
Tests: Simplify the list of global groups in object cache tests.
This list was not up to date due to missing `blog_meta` group, and does not appear to be required for the tests to pass, as `WP_UnitTestCase_Base::flush_cache()` adds the same list of groups, which is up to date. Follow-up to [946/tests], [1332/tests], [40343], [42836], [53823]. See #55647. git-svn-id: https://develop.svn.wordpress.org/trunk@53824 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 183bfc8 commit 2fc9367

1 file changed

Lines changed: 1 addition & 21 deletions

File tree

tests/phpunit/tests/cache.php

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -24,27 +24,7 @@ private function &init_cache() {
2424
$cache_class = get_class( $wp_object_cache );
2525
$cache = new $cache_class();
2626

27-
$cache->add_global_groups(
28-
array(
29-
'global-cache-test',
30-
'users',
31-
'userlogins',
32-
'usermeta',
33-
'user_meta',
34-
'useremail',
35-
'userslugs',
36-
'site-transient',
37-
'site-options',
38-
'blog-lookup',
39-
'blog-details',
40-
'rss',
41-
'global-posts',
42-
'blog-id-cache',
43-
'networks',
44-
'sites',
45-
'site-details',
46-
)
47-
);
27+
$cache->add_global_groups( array( 'global-cache-test' ) );
4828

4929
return $cache;
5030
}

0 commit comments

Comments
 (0)