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>
20 lines
484 B
PHP
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');
|
|
}
|
|
}
|