From 4c34858f1fba36ccef592e9715062c8e325b3ec8 Mon Sep 17 00:00:00 2001 From: Sean Fisher Date: Wed, 20 Mar 2024 11:11:08 -0400 Subject: [PATCH] Fixing test --- tests/RestApiGuardTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/RestApiGuardTest.php b/tests/RestApiGuardTest.php index 6bd3463..febf319 100644 --- a/tests/RestApiGuardTest.php +++ b/tests/RestApiGuardTest.php @@ -122,7 +122,8 @@ public function test_prevent_anonymous_access_settings() { } public function test_check_options_requests() { - $this->expectApplied( 'rest_api_guard_check_options_requests' )->times( 3 ); + $this->assertNotAuthenticated(); + $this->expectApplied( 'rest_api_guard_check_options_requests' )->times( 8 ); // Check the default settings. update_option(