From d84cb61c334f5729efa100fc933fb0d0f2120e76 Mon Sep 17 00:00:00 2001 From: Chris Lloyd Date: Sun, 27 Feb 2022 21:22:09 +0000 Subject: [PATCH] WIP --- tests/Protocol/FormatTest.php | 8 ++++++++ .../Protocol/FormatTest__test_no_accept_header__1.yml | 5 +++++ 2 files changed, 13 insertions(+) create mode 100644 tests/__snapshots__/Protocol/FormatTest__test_no_accept_header__1.yml diff --git a/tests/Protocol/FormatTest.php b/tests/Protocol/FormatTest.php index 5b8b23f5f..9fd757672 100644 --- a/tests/Protocol/FormatTest.php +++ b/tests/Protocol/FormatTest.php @@ -15,6 +15,14 @@ public function test_rejects_bad_accept_subtype() ); } + public function test_no_accept_header() + { + $this->assertResponseSnapshot( + (new Request) + ->unsetHeader('accept') + ); + } + public function test_rejects_bad_accept_type_subtype() { $this->assertNotAcceptable( diff --git a/tests/__snapshots__/Protocol/FormatTest__test_no_accept_header__1.yml b/tests/__snapshots__/Protocol/FormatTest__test_no_accept_header__1.yml new file mode 100644 index 000000000..7a16a321e --- /dev/null +++ b/tests/__snapshots__/Protocol/FormatTest__test_no_accept_header__1.yml @@ -0,0 +1,5 @@ +headers: + cache-control: ['no-cache, private'] + content-type: [application/json;metadata=minimal] + odata-version: ['4.01'] +status: 200