* docs(openspec): propose setup-foundation change Add OpenSpec change for SPEC Phase 0 — Foundation with proposal, design, capability specs, and implementation tasks. Populate openspec/config.yaml with project context and artifact rules. Co-authored-by: Cursor <cursoragent@cursor.com> * feat: bootstrap Laravel 13 foundation (Fase 0) Implement OpenSpec change setup-foundation: Laravel 13 + Filament 5 admin panel, Livewire 4 public site shell, PostgreSQL via Compose, design tokens, role-based auth, quality gates (Pint/Larastan/Pest), FrankenPHP Dockerfile, and GitHub Actions CI with five blocking jobs. Co-authored-by: Cursor <cursoragent@cursor.com> * fix(ci): use valid APP_KEY for encryption in tests Co-authored-by: Cursor <cursoragent@cursor.com> --------- Co-authored-by: Cursor <cursoragent@cursor.com>
30 lines
765 B
PHP
30 lines
765 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Tests\Feature;
|
|
|
|
use Tests\TestCase;
|
|
|
|
class HealthCheckTest extends TestCase
|
|
{
|
|
public function test_up_endpoint_returns_ok_without_authentication(): void
|
|
{
|
|
$response = $this->get('/up');
|
|
|
|
$response->assertOk();
|
|
}
|
|
|
|
public function test_up_endpoint_does_not_expose_secrets(): void
|
|
{
|
|
$response = $this->get('/up');
|
|
|
|
$content = $response->getContent() ?? '';
|
|
|
|
$this->assertStringNotContainsString((string) config('app.key'), $content);
|
|
$this->assertStringNotContainsString((string) env('DB_PASSWORD'), $content);
|
|
$this->assertStringNotContainsString('Stack trace', $content);
|
|
$this->assertStringNotContainsString('APP_KEY', $content);
|
|
}
|
|
}
|