18 lines
516 B
PHP
18 lines
516 B
PHP
<?php
|
|
|
|
it('returns ping status with build and notification state', function (): void {
|
|
$composer = json_decode((string) file_get_contents(base_path('composer.json')), true);
|
|
$expectedBuild = isset($composer['build']) ? (int) $composer['build'] : null;
|
|
|
|
$response = $this->getJson('/ping');
|
|
|
|
$response->assertOk();
|
|
$response->assertJson([
|
|
'connect' => 'ok',
|
|
'version_status' => [
|
|
'build' => $expectedBuild,
|
|
],
|
|
'notification_state' => false,
|
|
]);
|
|
});
|