From 9c1993171b2e5e84330bdde0c9df5875b76ce375 Mon Sep 17 00:00:00 2001 From: Sean Fisher Date: Fri, 12 Jan 2024 14:43:45 -0500 Subject: [PATCH] Test that the REST API is applied too --- tests/alley/wp/alleyvate/features/test-prevent-framing.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/alley/wp/alleyvate/features/test-prevent-framing.php b/tests/alley/wp/alleyvate/features/test-prevent-framing.php index 0750ec42..b769362e 100644 --- a/tests/alley/wp/alleyvate/features/test-prevent-framing.php +++ b/tests/alley/wp/alleyvate/features/test-prevent-framing.php @@ -46,6 +46,7 @@ public function test_x_frame_options_header(): void { $this->feature->boot(); $this->get( '/' )->assertHeader( 'X-Frame-Options', 'SAMEORIGIN' ); + $this->get( '/wp-json/wp/v2/posts' )->assertHeader( 'X-Frame-Options', 'SAMEORIGIN' ); } /**