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(