get('health-check/up'); $queryLog = DB::getQueryLog(); // Assert $this->assertCount(0, $queryLog); $response->assertSuccessful(); $response->assertExactJson([ 'success' => true, ]); } public function test_debug_endpoint_returns_ok(): void { // Act $response = $this->get('health-check/debug'); // Assert $response->assertSuccessful(); $response->assertJsonStructure([ 'ip_address', 'hostname', 'timestamp', 'date_time_utc', 'date_time_app', 'timezone', 'secure', 'is_trusted_proxy', ]); } }