mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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
This commit is contained in:
parent
183bfc8b25
commit
2fc936733e
@ -24,27 +24,7 @@ class Tests_Cache extends WP_UnitTestCase {
|
||||
$cache_class = get_class( $wp_object_cache );
|
||||
$cache = new $cache_class();
|
||||
|
||||
$cache->add_global_groups(
|
||||
array(
|
||||
'global-cache-test',
|
||||
'users',
|
||||
'userlogins',
|
||||
'usermeta',
|
||||
'user_meta',
|
||||
'useremail',
|
||||
'userslugs',
|
||||
'site-transient',
|
||||
'site-options',
|
||||
'blog-lookup',
|
||||
'blog-details',
|
||||
'rss',
|
||||
'global-posts',
|
||||
'blog-id-cache',
|
||||
'networks',
|
||||
'sites',
|
||||
'site-details',
|
||||
)
|
||||
);
|
||||
$cache->add_global_groups( array( 'global-cache-test' ) );
|
||||
|
||||
return $cache;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user