Files
api/services/nginx/app/tests/Api/PingApiTest.php
T
Jeppe Bundgaard b7aeb11801 Add department_selfserve_path_confirmations table and enhance PingApiTest
Introduce a new database table `department_selfserve_path_confirmations` to store path confirmations related to department configurations. Update `PingApiTest` to verify additional keys, ensuring `backend_version` and `api_commit_sha` are checked in the response.
2026-05-27 17:35:16 +02:00

24 lines
489 B
PHP

<?php
declare(strict_types=1);
usesApiSuite();
it('returns the ping contract', function (): void {
api_test_covers('GET /ping', 'happy');
$response = api_client()->get('/ping');
$response
->assertStatus(200)
->assertEnvelope()
->assertSuccess();
expect($response->data())
->toBeArray()
->toHaveKey('message', 'pong')
->toHaveKey('time')
->toHaveKey('backend_version')
->toHaveKey('api_commit_sha');
});