Skip to content

Commit

Permalink
pull supportedResponseFormats from config(Format)
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Apr 7, 2020
1 parent f7dd47f commit bd2282c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/system/API/ResponseTraitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ public function __construct(&$request, &$response)
};

$controller->respondCreated(['id' => 3], 'A Custom Reason');
$this->assertStringStartsWith('application/json; charset=UTF-8', $response->getHeaderLine('Content-Type'));
$this->assertStringStartsWith(config('Format')->supportedResponseFormats[0], $response->getHeaderLine('Content-Type'));
}

}

0 comments on commit bd2282c

Please sign in to comment.