Skip to content

Commit

Permalink
Fix Tests, Updated Test data
Browse files Browse the repository at this point in the history
  • Loading branch information
ruff committed Dec 25, 2022
1 parent 96f4c68 commit fe5ea82
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions tests/testcases/OrderDocumentReaderComfortTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3506,4 +3506,28 @@ public function testNextDocumentPositionTaxPos3(): void
{
$this->assertFalse(self::$document->nextDocumentPositionTax());
}

/**
* @covers \horstoeko\orderx\OrderDocumentReader
* @covers \horstoeko\orderx\OrderObjectHelper
*/
public function testGetDocumentPositionTax(): void
{
self::$document->firstDocumentPosition();
self::$document->getDocumentPositionTax(
$categoryCode,
$typeCode,
$rateApplicablePercent,
$calculatedAmount,
$exemptionReason,
$exemptionReasonCode
);

$this->assertEquals("S", $categoryCode);
$this->assertEquals("VAT", $typeCode);
$this->assertEquals(19.0, $rateApplicablePercent);
$this->assertEquals(0.0, $calculatedAmount);
$this->assertEquals("", $exemptionReason);
$this->assertEquals("", $exemptionReasonCode);
}
}

0 comments on commit fe5ea82

Please sign in to comment.