You are here

public function JsonResponseTest::testStaticCreateAddsContentTypeHeader in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-foundation/Tests/JsonResponseTest.php \Symfony\Component\HttpFoundation\Tests\JsonResponseTest::testStaticCreateAddsContentTypeHeader()

File

vendor/symfony/http-foundation/Tests/JsonResponseTest.php, line 133

Class

JsonResponseTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function testStaticCreateAddsContentTypeHeader() {
  $response = JsonResponse::create();
  $this
    ->assertSame('application/json', $response->headers
    ->get('Content-Type'));
}