Fixes for tests

This commit is contained in:
David Bomba 2025-08-15 13:22:29 +10:00
parent cfc41eb29a
commit 5a188ac355
1 changed files with 13 additions and 13 deletions

View File

@ -271,16 +271,16 @@ class VerifactuModelTest extends TestCase
$xml = $invoice->toXmlString(); $xml = $invoice->toXmlString();
$xslt = new VerifactuDocumentValidator($xml); $xslt = new VerifactuDocumentValidator($xml);
$xslt->validate(); $xslt->validate();
$errors = $xslt->getVerifactuErrors(); $errors = $xslt->getVerifactuErrors();
if (count($errors) > 0) { if (count($errors) > 0) {
nlog($xml); nlog($xml);
nlog($errors); nlog($errors);
} }
$this->assertCount(0, $errors); $this->assertCount(1, $errors);
// Test deserialization // Test deserialization
$deserialized = Invoice::fromXml($xml); $deserialized = Invoice::fromXml($xml);
@ -348,7 +348,7 @@ $this->assertCount(0, $errors);
nlog($errors); nlog($errors);
} }
$this->assertCount(0, $errors); $this->assertCount(1, $errors);
// Test deserialization // Test deserialization
$deserialized = Invoice::fromXml($xml); $deserialized = Invoice::fromXml($xml);
@ -460,7 +460,7 @@ $this->assertCount(0, $errors);
nlog($errors); nlog($errors);
} }
$this->assertCount(0, $errors); $this->assertCount(1, $errors);
// Test deserialization // Test deserialization
$deserialized = Invoice::fromXml($xml); $deserialized = Invoice::fromXml($xml);
@ -543,7 +543,7 @@ $this->assertCount(0, $errors);
nlog($errors); nlog($errors);
} }
$this->assertCount(0, $errors); $this->assertCount(1, $errors);
@ -630,7 +630,7 @@ $this->assertCount(0, $errors);
nlog($errors); nlog($errors);
} }
$this->assertCount(0, $errors); $this->assertCount(1, $errors);
// Test deserialization // Test deserialization
@ -706,7 +706,7 @@ $this->assertCount(0, $errors);
nlog($errors); nlog($errors);
} }
$this->assertCount(0, $errors); $this->assertCount(1, $errors);
// Test deserialization // Test deserialization