From 32027908201f03ac7f85aa73fcad5b3d0e58b510 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Mon, 21 Dec 2020 17:49:20 +0000 Subject: [PATCH] Build/Test Tools: Don't mark the `Tests_Cache::test_flush()` test as risky when running the test suite with an object cache in place. See #51802 git-svn-id: https://develop.svn.wordpress.org/trunk@49857 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/cache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/tests/cache.php b/tests/phpunit/tests/cache.php index b8c11b09df..548f185fa9 100644 --- a/tests/phpunit/tests/cache.php +++ b/tests/phpunit/tests/cache.php @@ -115,7 +115,7 @@ class Tests_Cache extends WP_UnitTestCase { global $_wp_using_ext_object_cache; if ( $_wp_using_ext_object_cache ) { - return; + $this->markTestSkipped( 'This test requires that an external object cache is not in use.' ); } $key = __FUNCTION__;