diff --git a/src/ZugferdProfiles.php b/src/ZugferdProfiles.php index e3e80bda..a666a550 100644 --- a/src/ZugferdProfiles.php +++ b/src/ZugferdProfiles.php @@ -126,7 +126,7 @@ class ZugferdProfiles 'item level to support warehousing, etc.)', 'contextparameter' => 'urn:cen.eu:en16931:2017#conformant#urn:factur-x.eu:1p0:extended', 'alternativecontextparameters' => ['urn:cen.eu:en16931:2017#conformant#urn:zugferd.de:2p0:extended'], - 'businessprocess' => null, + 'businessprocess' => 'urn:fdc:peppol.eu:2017:poacc:billing:01:1.0', 'attachmentfilename' => 'factur-x.xml', 'xmpname' => 'EXTENDED', 'xsdfilename' => 'FACTUR-X_EXTENDED.xsd', diff --git a/tests/testcases/BuilderExtendedTest.php b/tests/testcases/BuilderExtendedTest.php index f2f3594b..a38cfd9b 100644 --- a/tests/testcases/BuilderExtendedTest.php +++ b/tests/testcases/BuilderExtendedTest.php @@ -70,11 +70,11 @@ public function testSetDocumentInformation(): void public function testSetDocumentBusinessProcess(): void { $this->disableRenderXmlContent(); - $this->assertXPathNotExists('/rsm:CrossIndustryInvoice/rsm:ExchangedDocumentContext/ram:BusinessProcessSpecifiedDocumentContextParameter/ram:ID'); + $this->assertXPathValueWithIndex('/rsm:CrossIndustryInvoice/rsm:ExchangedDocumentContext/ram:BusinessProcessSpecifiedDocumentContextParameter/ram:ID', 0, 'urn:fdc:peppol.eu:2017:poacc:billing:01:1.0'); (self::$document)->setDocumentBusinessProcess(""); $this->disableRenderXmlContent(); - $this->assertXPathNotExists('/rsm:CrossIndustryInvoice/rsm:ExchangedDocumentContext/ram:BusinessProcessSpecifiedDocumentContextParameter/ram:ID'); + $this->assertXPathValueWithIndex('/rsm:CrossIndustryInvoice/rsm:ExchangedDocumentContext/ram:BusinessProcessSpecifiedDocumentContextParameter/ram:ID', 0, 'urn:fdc:peppol.eu:2017:poacc:billing:01:1.0'); (self::$document)->setDocumentBusinessProcess("GENERAL INVOICE"); $this->disableRenderXmlContent();