fix: complete InvesteMoz validation and error corrections
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Feature;
|
||||
|
||||
use App\Models\User;
|
||||
@@ -27,11 +28,11 @@ final class IvaPublicAuthorityBaseDraftTest extends TestCase
|
||||
$store = json_decode($recovered['modelo_a_snapshot'], true, flags: JSON_THROW_ON_ERROR);
|
||||
$book = $store['publicAuthorityBases']['opportunity:339'];
|
||||
$this->assertCount(2, $book['rows']);
|
||||
$this->assertSame(['public_authority_indemnity','public_authority_compensation'], array_column($book['rows'], 'treatment'));
|
||||
$this->assertSame(['1500.25','1250.30'], array_column($book['result']['rows'], 'baseAmount'));
|
||||
$this->assertSame(['determined','determined'], array_column($book['result']['rows'], 'status'));
|
||||
$this->assertSame([null,null], array_column($book['result']['rows'], 'vat'));
|
||||
$this->assertSame([null,null], array_column($book['result']['rows'], 'rate'));
|
||||
$this->assertSame(['public_authority_indemnity', 'public_authority_compensation'], array_column($book['rows'], 'treatment'));
|
||||
$this->assertSame(['1500.25', '1250.30'], array_column($book['result']['rows'], 'baseAmount'));
|
||||
$this->assertSame(['determined', 'determined'], array_column($book['result']['rows'], 'status'));
|
||||
$this->assertSame([null, null], array_column($book['result']['rows'], 'vat'));
|
||||
$this->assertSame([null, null], array_column($book['result']['rows'], 'rate'));
|
||||
$this->assertSame('2026-12', $book['rows'][0]['period']);
|
||||
$this->assertSame('SYNTHETIC QA acto A,operação própria', $book['rows'][0]['actRef']);
|
||||
$this->assertSame('mixed', $book['rows'][1]['compensationForm']);
|
||||
|
||||
Reference in New Issue
Block a user