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.
24 lines
489 B
PHP
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');
|
|
});
|