public function testPassingArrayForBodyMakesResponseJson() { $response = new Response(['foo' => 'bar']); $this->assertTrue($response->isJson()); $this->assertSame(['foo' => 'bar'], $response->json()); }