Files
Verde-Web/tests/Feature/Api/V1/HealthTest.php
admin dc297d4cd7 feat(backend): complete Module 1 auth (register/login/OTP/reset)
Closes Module 1: 9 auth endpoints under /api/v1/auth, OTP via SMS
(Semaphore + log + fake drivers), role middleware, role + admin seeders,
27 feature tests passing.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-29 21:46:53 +08:00

20 lines
484 B
PHP

<?php
namespace Tests\Feature\Api\V1;
use Tests\TestCase;
class HealthTest extends TestCase
{
public function test_health_endpoint_returns_envelope(): void
{
$response = $this->getJson('/api/v1/health');
$response->assertOk()
->assertJsonPath('success', true)
->assertJsonPath('data.service', config('app.name'))
->assertJsonPath('data.version', 'v1')
->assertJsonPath('data.database.status', 'ok');
}
}