Tornar a suite de testes portável e alinhada com o código

- sgfTempoPath(): substitui caminhos C:/laragon fixos (SGF_TEMPO_ROOT, por
  omissão a pasta irmã sgf-tempo, igual ao Laragon).
- skipUnlessIsolatedPostgres(): testes que exigem a base QA PostgreSQL isolada
  passam a ser ignorados com motivo em SQLite em vez de rebentar.
- Artefacto de distribuição orçamental gerado localmente: ignorado se ausente.
- Páginas públicas /consulta e /proposta: testes alinhados com os
  redireccionamentos para os módulos reais (decisão de 29/11).
- Impressão da ordem: texto do aviso orçamental actualizado.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-30 23:01:36 +02:00
co-authored by Claude Opus 5.5
parent 7615accf07
commit 8e1e8799a5
16 changed files with 1062 additions and 299 deletions
@@ -6,6 +6,9 @@ use Symfony\Component\Process\Process;
beforeEach(function () {
$proof = json_decode(file_get_contents(base_path('docs/proofs/rq01-distribution-artifact.json')), true, 32, JSON_THROW_ON_ERROR);
if (! is_dir(base_path($proof['path']))) {
$this->markTestSkipped('The frozen distribution artifact is generated locally by scripts/prepare-budget-distribution-artifact.php.');
}
$this->artifactDirectory = storage_path('framework/testing/distribution-integrity-'.Str::uuid());
mkdir($this->artifactDirectory.'/src', 0700, true);
foreach ($proof['files'] as $file => $hash) {
@@ -18,6 +21,9 @@ beforeEach(function () {
});
afterEach(function () {
if (! isset($this->artifactDirectory)) {
return;
}
foreach (glob($this->artifactDirectory.'/src/*') as $file) {
unlink($file);
}