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,9 +28,9 @@ final class IvaImportServicesDraftTest extends TestCase
|
||||
$store = json_decode($recovered['modelo_a_snapshot'], true, flags: JSON_THROW_ON_ERROR);
|
||||
$book = $store['importExemptions']['opportunity:336'];
|
||||
$this->assertCount(2, $book['rows']);
|
||||
$this->assertSame(['service_in_customs_value','accessory_service_first_destination'], array_column($book['rows'], 'treatment'));
|
||||
$this->assertSame(['service_in_customs_value', 'accessory_service_first_destination'], array_column($book['rows'], 'treatment'));
|
||||
$this->assertSame(array_fill(0, 2, '0.00'), array_column($book['result']['rows'], 'serviceVat'));
|
||||
$this->assertSame([null,null], array_column($book['result']['rows'], 'importVat'));
|
||||
$this->assertSame([null, null], array_column($book['result']['rows'], 'importVat'));
|
||||
$this->assertSame('SYNTHETIC QA importação DU-A,2026-12', $book['rows'][0]['serviceImportRef']);
|
||||
$this->assertSame('SYNTHETIC QA base DU-A,linha serviço5000MZN', $book['rows'][0]['serviceBaseRef']);
|
||||
$this->assertSame(array_fill(0, 2, 'exempt'), array_column($book['result']['rows'], 'status'));
|
||||
|
||||
Reference in New Issue
Block a user