varias alteracoes
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-10-06 14:50:12 +02:00
parent 4f35313d06
commit e65cb26901
333 changed files with 54656 additions and 2058 deletions
+10 -1
View File
@@ -146,9 +146,18 @@ class InvestmentUnificationTest extends TestCase
public function test_territorial_filters_intersect_and_hide_withdrawn_relations(): void
{
$this->artisan('portfolio:import', ['--approval' => 'Autorização sintética exclusivamente para teste.'])->assertSuccessful();
$this->artisan('portfolio:import')->assertSuccessful();
$clusters = InvestmentDossier::whereNotNull('cluster_id')->limit(2)->get();
$corridor = InvestmentDossier::whereNotNull('corridor_id')->firstOrFail();
// Explicitly published synthetic fixtures; import itself keeps all dossiers private.
$editor = User::factory()->create();
$reviewer = User::factory()->create();
$publishFixture = fn (InvestmentDossier $dossier) => $dossier->update([
'publication_status' => 'published', 'published_at' => now(), 'editor_id' => $editor->id,
'reviewer_id' => $reviewer->id, 'approval_evidence' => 'Synthetic independent review fixture', 'approval_basis' => 'manager',
]);
$clusters->each($publishFixture);
$publishFixture($corridor);
$opportunity = $this->opportunity();
foreach ($clusters as $cluster) {
DB::table('opportunity_clusters')->insert(['opportunity_id' => $opportunity->id, 'cluster_id' => $cluster->cluster_id]);