From 56cbc3f58b1cae2490d8ab187f0130bb7cee8c6e Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 16 Sep 2024 21:12:47 +1000 Subject: [PATCH] Fixes for php unit --- app/Services/EDocument/Standards/Peppol.php | 8 ++++++++ tests/Integration/Einvoice/Storecove/StorecoveTest.php | 6 +++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/app/Services/EDocument/Standards/Peppol.php b/app/Services/EDocument/Standards/Peppol.php index cbddc55bd129..e89722ff1c64 100644 --- a/app/Services/EDocument/Standards/Peppol.php +++ b/app/Services/EDocument/Standards/Peppol.php @@ -390,6 +390,14 @@ class Peppol extends AbstractService $this->p_invoice = $this->e->decode('Peppol', json_encode($this->invoice->e_invoice->Invoice), 'json'); + + $this->gateway + ->mutator + ->setInvoice($this->invoice) + ->setPeppol($this->p_invoice) + ->setClientSettings($this->_client_settings) + ->setCompanySettings($this->_company_settings); + return $this; } diff --git a/tests/Integration/Einvoice/Storecove/StorecoveTest.php b/tests/Integration/Einvoice/Storecove/StorecoveTest.php index 2983da18de29..2607ba820fc7 100644 --- a/tests/Integration/Einvoice/Storecove/StorecoveTest.php +++ b/tests/Integration/Einvoice/Storecove/StorecoveTest.php @@ -1155,10 +1155,10 @@ class StorecoveTest extends TestCase $xml = $p->toXml(); nlog($xml); - $identifiers = $p->getStorecoveMeta(); + // $identifiers = $p->getStorecoveMeta(); - $sc = new \App\Services\EDocument\Gateway\Storecove\Storecove(); - $sc->sendDocument($xml, $this->routing_id, $identifiers); + // $sc = new \App\Services\EDocument\Gateway\Storecove\Storecove(); + // $sc->sendDocument($xml, $this->routing_id, $identifiers); }