Skip to content

Commit

Permalink
Added technical test cast for testing payment mandate
Browse files Browse the repository at this point in the history
  • Loading branch information
ruff committed Aug 6, 2024
1 parent de32802 commit d37604c
Show file tree
Hide file tree
Showing 4 changed files with 571 additions and 0 deletions.
1 change: 1 addition & 0 deletions build/phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<file>../tests/testcases/CiiToUblExtendedFwTest.php</file>
<file>../tests/testcases/CiiToUblTechnical1Test.php</file>
<file>../tests/testcases/CiiToUblTechnical2Test.php</file>
<file>../tests/testcases/CiiToUblTechnical3Test.php</file>
<file>../tests/testcases/UblToCiiSimpleTest.php</file>
</testsuite>
</testsuites>
Expand Down
223 changes: 223 additions & 0 deletions tests/assets/cii/3_cii_technical_3.xml

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions tests/testcases/CiiToUblTechnical2Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -383,5 +383,7 @@ public function testInvoiceLine(): void
$this->assertXPathNotExistsWithIndex('/ubl:Invoice/cac:InvoiceLine/cac:Price/AllowanceCharge/cbc:ChargeIndicator', 3);
$this->assertXPathNotExistsWithIndex('/ubl:Invoice/cac:InvoiceLine/cac:Price/AllowanceCharge/cbc:Amount', 3);
$this->assertXPathNotExistsWithIndex('/ubl:Invoice/cac:InvoiceLine/cac:Price/AllowanceCharge/cbc:BaseAmount', 3);

$this->assertXPathNotExistsWithIndex('/ubl:Invoice/cac:InvoiceLine', 4);
}
}
Loading

0 comments on commit d37604c

Please sign in to comment.