request('GET', 'http://caddy/number_sales_by_date/day/2021-01-12/2021-12-31?page=1', [ 'headers' => ['accept' => 'application/ld+json'] ]); // Assert that the response is successful $this->assertEquals(200, $response->getStatusCode()); // Assert that the response is in JSON $this->assertStringContainsString('application/ld+json', $response->getHeaders()['content-type'][0]); // Assert that the response contains the expected properties $this->assertStringContainsString('date', $response->getContent()); $this->assertStringContainsString('numberSales', $response->getContent()); } } ?>