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,12 +28,12 @@ final class IvaActSaleBaseDraftTest extends TestCase
|
||||
$store = json_decode($recovered['modelo_a_snapshot'], true, flags: JSON_THROW_ON_ERROR);
|
||||
$book = $store['actSaleBases']['opportunity:341'];
|
||||
$this->assertCount(2, $book['rows']);
|
||||
$this->assertSame(['act_sale_amount','act_normal_value'], array_column($book['rows'], 'treatment'));
|
||||
$this->assertSame(['1500.25','2200.50'], 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(['auction','settlement'], array_column($book['rows'], 'actKind'));
|
||||
$this->assertSame(['act_sale_amount', 'act_normal_value'], array_column($book['rows'], 'treatment'));
|
||||
$this->assertSame(['1500.25', '2200.50'], 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(['auction', 'settlement'], array_column($book['rows'], 'actKind'));
|
||||
$this->assertSame('1500.25', $book['rows'][0]['actValue']);
|
||||
$this->assertSame('2200.50', $book['rows'][0]['normalValue']);
|
||||
$this->assertStringContainsString('acto A', $book['rows'][0]['actRef']);
|
||||
@@ -52,4 +53,3 @@ final class IvaActSaleBaseDraftTest extends TestCase
|
||||
file_put_contents(base_path('outputs/iva-l1-g7c-act-bases-20261024/recovered.json'), json_encode($recovered, JSON_THROW_ON_ERROR | JSON_UNESCAPED_UNICODE));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user