Skip to content

Commit

Permalink
Run common tests on CreatedResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
jsor committed Oct 16, 2022
1 parent 93706c2 commit bb6d199
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/Response/CreatedResponseTest.php
Expand Up @@ -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
{
Expand Down

0 comments on commit bb6d199

Please sign in to comment.