From 2fc936733eb83291cad1c85a557d79de8de60c01 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 4 Aug 2022 14:02:36 +0000 Subject: [PATCH] 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 --- tests/phpunit/tests/cache.php | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/tests/phpunit/tests/cache.php b/tests/phpunit/tests/cache.php index 2c9bab0e95..d6b059adba 100644 --- a/tests/phpunit/tests/cache.php +++ b/tests/phpunit/tests/cache.php @@ -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; }