Skip to content

Commit

Permalink
Updated assets for testcases
Browse files Browse the repository at this point in the history
  • Loading branch information
ruff committed Dec 27, 2022
1 parent 83a6b62 commit 5e169e1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions examples/OrderBuilderComfortSimple.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@

require dirname(__FILE__) . "/../vendor/autoload.php";

$dt = \DateTime::createFromFormat("Ymd", "20221221");
$dt = \DateTime::createFromFormat("Ymd", "20221225");

$document = OrderDocumentBuilder::CreateNew(
OrderProfiles::PROFILE_EXTENDED
OrderProfiles::PROFILE_COMFORT
);

$document
->setIsDocumentCopy(true)
->setIsDocumentCopy(false)
->setIsTestDocument(false)
->setDocumentBusinessProcessSpecifiedDocumentContextParameter("A1")

Expand Down
Binary file modified tests/assets/reader-order-x-comfort.pdf
Binary file not shown.
10 changes: 5 additions & 5 deletions tests/testcases/OrderDocumentPdfReaderComfortTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function testGetDocumentInformation(): void

$this->assertEquals("PO123456789", $documentNo);
$this->assertEquals(OrderDocumentTypes::ORDER, $documentTypeCode);
$this->assertEquals("26.12.2022", $documentDate->format('d.m.Y'));
$this->assertEquals("25.12.2022", $documentDate->format('d.m.Y'));
$this->assertEquals("EUR", $documentCurrency);
$this->assertEquals("Doc Name", $documentName);
$this->assertEmpty($documentLanguageId);
Expand All @@ -108,7 +108,7 @@ public function testGetIsDocumentCopy(): void
self::$document->getIsDocumentCopy($documentIsCopy);

$this->assertNotNull($documentIsCopy);
$this->assertTrue($documentIsCopy);
$this->assertFalse($documentIsCopy);
}

/**
Expand Down Expand Up @@ -1186,9 +1186,9 @@ public function testGetDocumentRequestedDeliverySupplyChainEvent(): void
$this->assertNotNull($occurrenceDateTime);
$this->assertNotNull($startDateTime);
$this->assertNotNull($endDateTime);
$this->assertEquals("26.12.2022", $occurrenceDateTime->format('d.m.Y'));
$this->assertEquals("26.12.2022", $startDateTime->format('d.m.Y'));
$this->assertEquals("26.12.2022", $endDateTime->format('d.m.Y'));
$this->assertEquals("25.12.2022", $occurrenceDateTime->format('d.m.Y'));
$this->assertEquals("25.12.2022", $startDateTime->format('d.m.Y'));
$this->assertEquals("25.12.2022", $endDateTime->format('d.m.Y'));
}

/**
Expand Down

0 comments on commit 5e169e1

Please sign in to comment.