/** * @test */ public function renderSetsContentTypeHeader() { $this->response->expects($this->once())->method('setHeader')->with('Content-Type', 'application/json'); $this->view->render(); }