From 1c111346377fcc3ba07a06e257d6fa01f4b1ae50 Mon Sep 17 00:00:00 2001 From: Brian Henry Date: Wed, 11 Sep 2024 14:33:11 -0700 Subject: [PATCH] =?UTF-8?q?Fix=20test=20=E2=80=93=20it=20was=20passing=20f?= =?UTF-8?q?or=20the=20wrong=20reason?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/phpunit/includes/Helpers/TransientTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/includes/Helpers/TransientTest.php b/tests/phpunit/includes/Helpers/TransientTest.php index 71e729b..06e7bb0 100644 --- a/tests/phpunit/includes/Helpers/TransientTest.php +++ b/tests/phpunit/includes/Helpers/TransientTest.php @@ -206,7 +206,7 @@ public function test_should_use_transients_bluehost_cloud(): void { \WP_Mock::userFunction( 'get_dropins' ) ->once() - ->andReturn( array() ); + ->andReturn( array( 'object-cache.php' => array() ) ); \WP_Mock::userFunction( 'set_transient' ) ->once()