Files
speedBB/tests/Feature/PingControllerTest.php
tracer 0b4e0df305
All checks were successful
CI/CD Pipeline / deploy (push) Successful in 26s
CI/CD Pipeline / promote_stable (push) Successful in 2s
Add ping endpoint, update-refresh prompt, and dark-mode polish
2026-02-24 18:48:54 +01:00

19 lines
428 B
PHP

<?php
use App\Models\Setting;
it('returns ping status with build and notification state', function (): void {
Setting::updateOrCreate(['key' => 'build'], ['value' => '1337']);
$response = $this->getJson('/ping');
$response->assertOk();
$response->assertJson([
'connect' => 'ok',
'version_status' => [
'build' => 1337,
],
'notification_state' => false,
]);
});