-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
HorstOeko
committed
Sep 6, 2023
1 parent
2ddb02b
commit c7f6e7f
Showing
3 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
namespace horstoeko\zugferd\tests\testcases\issues; | ||
|
||
use \horstoeko\zugferd\tests\TestCase; | ||
use \horstoeko\zugferd\tests\traits\HandlesXmlTests; | ||
use \horstoeko\zugferd\ZugferdProfiles; | ||
use \horstoeko\zugferd\ZugferdDocumentBuilder; | ||
|
||
class Issue18Test extends TestCase | ||
{ | ||
use HandlesXmlTests; | ||
|
||
public static function setUpBeforeClass(): void | ||
{ | ||
self::$document = ZugferdDocumentBuilder::CreateNew(ZugferdProfiles::PROFILE_XRECHNUNG_3); | ||
} | ||
|
||
/** | ||
* @return void | ||
* @issue #18 | ||
*/ | ||
public function testBusinessProcessSpecifiedDocumentContextParameter(): void | ||
{ | ||
$invoiceObject = self::$document->getInvoiceObject(); | ||
$this->assertEquals('urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0', $invoiceObject->getExchangedDocumentContext()->getGuidelineSpecifiedDocumentContextParameter()->getId()); | ||
$this->assertEquals('urn:fdc:peppol.eu:2017:poacc:billing:01:1.0', $invoiceObject->getExchangedDocumentContext()->getBusinessProcessSpecifiedDocumentContextParameter()->getId()); | ||
} | ||
} |