From bb6d19900166a80405da02a598866f68995023db Mon Sep 17 00:00:00 2001 From: Jan Sorgalla Date: Sun, 16 Oct 2022 15:01:28 +0200 Subject: [PATCH] Run common tests on CreatedResponse --- tests/Response/CreatedResponseTest.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/Response/CreatedResponseTest.php b/tests/Response/CreatedResponseTest.php index dc44c12..7e9a23a 100644 --- a/tests/Response/CreatedResponseTest.php +++ b/tests/Response/CreatedResponseTest.php @@ -9,6 +9,13 @@ final class CreatedResponseTest extends TestCase { + use HalResponseTestCase; + + protected function provideResponse(Hal $hal = null): HalResponse + { + return new CreatedResponse($hal ?: new Hal()); + } + /** @test */ public function it_sets_location_header(): void {