From 5e169e109e93b0d2f32e90f7c35a410e8318bcb7 Mon Sep 17 00:00:00 2001 From: ruff Date: Tue, 27 Dec 2022 11:48:52 +0100 Subject: [PATCH] Updated assets for testcases --- examples/OrderBuilderComfortSimple.php | 6 +++--- tests/assets/reader-order-x-comfort.pdf | Bin 70589 -> 70584 bytes .../OrderDocumentPdfReaderComfortTest.php | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/examples/OrderBuilderComfortSimple.php b/examples/OrderBuilderComfortSimple.php index affc47e..ff9da06 100644 --- a/examples/OrderBuilderComfortSimple.php +++ b/examples/OrderBuilderComfortSimple.php @@ -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") diff --git a/tests/assets/reader-order-x-comfort.pdf b/tests/assets/reader-order-x-comfort.pdf index 6f539fd55aa56885e857ab34a05e521ce347c927..4a44786f6ef20611c92ba3bc14b355deb0726a3f 100644 GIT binary patch delta 1380 zcmZXKdpy$#0Kn}*w>jbz(sfoNjdty~{r1ufV+vuDd8XNH^T?|l$)}nNt9&YNLgzVo zMc9!Ol?!tyHu0g+XQeVJM+!aN=kCw$``7pL{d~J?;2kw^eM^?J3l{j9jI_*ErdPG- zkHf40Dsmr-cY+rkkD}4`dBh5wdA|rzdz@|YI6NM}_%vt#D5*I+k~+8K63>$7~h zqUXH7cezf$E5z^HX0@Wct5Bcr91CPU>>xT9v_k>lCCF*a^wR{w4@I@Nm?pDGVvH<<4@C+tx07~2jz6X z(x$W9=+$mK&H$?EH>{^$e|yR5jZvvQ53MdKZR`7J!U-wOPTtFQaYN(&HtZa&U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bABG-oEKiZRT-3D;xtc%ohJ|5ss>IjbHQ%7mvnqTZ zIs@*3@bK;ws{BCsQoroWHC$tx^PIRL}JEncO^|IgO1;=wrB%2K2khh0>&IaXY_RnLK^c4&7$k>6@nUL)-=lxr5BQU4L? zD?Jr(k!qi19eyd|Y^fg4=gEdDVN8zBM2v9Q%zzDL#g;vn9XB+Yn&<8`^@3D>LAHcD z%3GZskM7)P!!pqe>(ZKT>3Gg{UX2g!e2A3kfl5!w8gfBg2CY1IIoKdrFn=>oIiN4E zR~N#Q{o|T)YIa=Kv8l^JUPbK{oMm(hhZGAQJ)rX1uw*j(`J?)GmQ+ubMFOkLFw24b z)FGP)V<*Hi?$!4l3syr!Hl+s%hj*L_$|>su*ein^_!rNBm5|wOG=0)N6xY*Fh^W$; zS!iOy#q?cDpJMzp%gw_J?#qA)lTigHrME0G1%99O zz2)BA(I0ABdws@CMMk0I{PL#gdp+?zHtRK(h)-to!PVT>C&yib^76CiU%U*dzHBWX zP2SA7AD-^;#R}vMh*G)mgQBh<*PF@KG}4k+N-`+;a=)&(i~PLb&VyMf6DQ`TGwjHnkLxl1hsjphbt z{nNS!Pp)1+cZy9*IgJ5x)1R zR05^gSO>y5CZGoLdBGHlfIuOT_*g0!NCH7To=PI~K|V+zFz6HkE{KA|33wnjP=LjP qBtH3DiM(%@0`Wlt9>Wh{Fn|~lFIp5I%@+Vvtd7VrO>O& diff --git a/tests/testcases/OrderDocumentPdfReaderComfortTest.php b/tests/testcases/OrderDocumentPdfReaderComfortTest.php index 5543c25..f3a057b 100644 --- a/tests/testcases/OrderDocumentPdfReaderComfortTest.php +++ b/tests/testcases/OrderDocumentPdfReaderComfortTest.php @@ -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); @@ -108,7 +108,7 @@ public function testGetIsDocumentCopy(): void self::$document->getIsDocumentCopy($documentIsCopy); $this->assertNotNull($documentIsCopy); - $this->assertTrue($documentIsCopy); + $this->assertFalse($documentIsCopy); } /** @@ -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')); } /**