fix: complete InvesteMoz validation and error corrections
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Feature;
|
||||
|
||||
use App\Models\User;
|
||||
@@ -28,14 +29,14 @@ final class IvaExclusionBaseDraftTest extends TestCase
|
||||
$book = $store['considerationExclusions']['opportunity:345'];
|
||||
$this->assertCount(1, $book['rows']);
|
||||
$this->assertCount(4, $book['rows'][0]['parts']);
|
||||
$this->assertSame(['judicial_indemnity','granted_discount','third_party_payment','returnable_packaging'], array_column($book['rows'][0]['parts'], 'treatment'));
|
||||
$this->assertSame(['judicial_indemnity', 'granted_discount', 'third_party_payment', 'returnable_packaging'], array_column($book['rows'][0]['parts'], 'treatment'));
|
||||
$this->assertSame(['799.70'], array_column($book['result']['rows'], 'baseAmount'));
|
||||
$this->assertSame(['determined'], array_column($book['result']['rows'], 'status'));
|
||||
$this->assertSame([null], array_column($book['result']['rows'], 'vat'));
|
||||
$this->assertSame([null], array_column($book['result']['rows'], 'rate'));
|
||||
$this->assertSame('1000.25', $book['rows'][0]['initialAmount']);
|
||||
$this->assertSame(['100.10','50.25','30.15','20.05'], array_column($book['rows'][0]['parts'], 'amount'));
|
||||
$this->assertSame(['yes','yes','yes','yes'], array_column($book['rows'][0]['parts'], 'included'));
|
||||
$this->assertSame(['100.10', '50.25', '30.15', '20.05'], array_column($book['rows'][0]['parts'], 'amount'));
|
||||
$this->assertSame(['yes', 'yes', 'yes', 'yes'], array_column($book['rows'][0]['parts'], 'included'));
|
||||
$this->assertSame('yes', $book['rows'][0]['parts'][0]['conditions']['judicialDeclaration']);
|
||||
$this->assertSame('yes', $book['rows'][0]['parts'][1]['conditions']['granted']);
|
||||
$this->assertSame('yes', $book['rows'][0]['parts'][2]['conditions']['thirdPartyAccounts']);
|
||||
@@ -58,4 +59,3 @@ final class IvaExclusionBaseDraftTest extends TestCase
|
||||
file_put_contents(base_path('outputs/iva-l1-g7g-exclusions-20261024/recovered.json'), json_encode($recovered, JSON_THROW_ON_ERROR | JSON_UNESCAPED_UNICODE));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user