From 6257f4118e3042a19a6654a05e365b288535c0a6 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sat, 18 May 2024 17:33:39 +1000 Subject: [PATCH] Cleanup for tests --- tests/Integration/Einvoice/FatturaPATest.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tests/Integration/Einvoice/FatturaPATest.php b/tests/Integration/Einvoice/FatturaPATest.php index 20dbde50c364..b2811bb02f79 100644 --- a/tests/Integration/Einvoice/FatturaPATest.php +++ b/tests/Integration/Einvoice/FatturaPATest.php @@ -169,7 +169,7 @@ class FatturaPATest extends TestCase foreach($files as $f) { - nlog("File => {$f}"); + // nlog("File => {$f}"); $xmlstring = file_get_contents($f); @@ -180,12 +180,18 @@ class FatturaPATest extends TestCase $validation_array = false; try { $rules = FatturaElettronica::getValidationRules($this->payload); - nlog($rules); + // nlog($rules); + $this->assertIsArray($rules); + $payload = FatturaElettronica::from($payload)->toArray(); - nlog($payload); + // nlog($payload); + $this->assertIsArray($payload); $validation_array = FatturaElettronica::validate($payload); + + $this->assertIsArray($validation_array); + } catch(\Illuminate\Validation\ValidationException $e) { nlog($e->errors());