url) extends ApiController { public function getResponse(): Response { return $this->response; } }; $response = $controller->getResponse(); $this->assertEquals(['application/json'], $response->getHeader('content-type')); $this->assertJson($response->getContent()); $this->assertEquals(['*'], $response->getHeader('access-control-allow-origin')); $this->assertJson($response->getContent()); } }