From 0a35283aa3288a83c71436bc7507c81fd71be16c Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 4 Aug 2022 15:16:32 +0000 Subject: [PATCH] Tests: Make the `comment` cache group persistent in `WP_UnitTestCase_Base::flush_cache()`. This brings the list of persistent groups when running the test suite in line with core. Follow-up to [1332/tests], [37613], [52976]. See #55652. git-svn-id: https://develop.svn.wordpress.org/trunk@53828 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/includes/abstract-testcase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/includes/abstract-testcase.php b/tests/phpunit/includes/abstract-testcase.php index edc1b0b2ad..11e2dcac7c 100644 --- a/tests/phpunit/includes/abstract-testcase.php +++ b/tests/phpunit/includes/abstract-testcase.php @@ -400,7 +400,7 @@ abstract class WP_UnitTestCase_Base extends PHPUnit_Adapter_TestCase { ) ); - wp_cache_add_non_persistent_groups( array( 'comment', 'counts', 'plugins' ) ); + wp_cache_add_non_persistent_groups( array( 'counts', 'plugins' ) ); } /**