diff --git a/tests/Unit/Endpoint/Web/HealthCheckEndpointTest.php b/tests/Unit/Endpoint/Web/HealthCheckEndpointTest.php new file mode 100644 index 00000000..8827f83d --- /dev/null +++ b/tests/Unit/Endpoint/Web/HealthCheckEndpointTest.php @@ -0,0 +1,39 @@ +get('health-check/up'); + + // Assert + $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', + ]); + } +}