diff --git a/tests/system/API/ResponseTraitTest.php b/tests/system/API/ResponseTraitTest.php index 6a72a795e565..0043f0fd29ed 100644 --- a/tests/system/API/ResponseTraitTest.php +++ b/tests/system/API/ResponseTraitTest.php @@ -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')); } }