Files
amare/openspec/changes/build-content-cms/specs/quality-gates/spec.md
manoel freitas 8da8d19504 feat: CMS de conteúdo do site (WEB-02/03/04/06)
Implementa gestão Filament de configurações, serviços, portfólio e depoimentos com policies admin-only, upload validado e seed determinístico.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-28 23:16:25 -03:00

801 B

ADDED Requirements

Requirement: Local feature tests use PostgreSQL

The system SHALL configure phpunit.xml so that the Feature test suite uses PostgreSQL with the same connection parameters as CI (DB_CONNECTION=pgsql, host, port, database amare_test, credentials). Local feature tests MUST NOT default to SQLite :memory:.

Scenario: Developer runs feature tests locally

  • WHEN a developer runs composer test:feature with PostgreSQL available
  • THEN tests MUST execute against PostgreSQL
  • AND MUST NOT silently fall back to SQLite

Scenario: Feature tests exercise PostgreSQL-specific types

  • WHEN feature tests persist records with jsonb columns (e.g., social_links)
  • THEN migrations and constraints MUST be validated against PostgreSQL semantics