fix: complete InvesteMoz validation and error corrections

This commit is contained in:
2026-10-29 21:47:33 +02:00
parent 63147312e2
commit daf8623441
718 changed files with 127308 additions and 20959 deletions
+3 -2
View File
@@ -1,4 +1,5 @@
<?php
namespace Tests\Feature;
use App\Models\User;
@@ -27,8 +28,8 @@ final class IvaOfferPathsDraftTest extends TestCase
$store = json_decode($recovered['modelo_a_snapshot'], true, flags: JSON_THROW_ON_ERROR);
$book = $store['offerPreparations']['opportunity:334'];
$this->assertCount(2, $book['rows']);
$this->assertSame(['P084','P085'], array_column($book['rows'], 'branch'));
$this->assertSame(['import','acquisition'], array_column($book['rows'], 'operation'));
$this->assertSame(['P084', 'P085'], array_column($book['rows'], 'branch'));
$this->assertSame(['import', 'acquisition'], array_column($book['rows'], 'operation'));
$this->assertArrayNotHasKey('result', $book);
$this->assertCount(3, $book['history']);
$this->assertSame('SYNTHETIC QA finalidade editada deliberadamente', $book['saved']['rows'][0]['purpose']);