additional verifactu validation tests
This commit is contained in:
parent
dab787c3ae
commit
5afd3b85bc
|
|
@ -68,7 +68,7 @@ class Invoice extends BaseXmlModel
|
|||
|
||||
public function getFechaExpedicionFactura(): string
|
||||
{
|
||||
return $this->fechaExpedicionFactura ?? now()->format('Y-m-d');
|
||||
return $this->fechaExpedicionFactura ?? now()->format('d-m-Y');
|
||||
}
|
||||
|
||||
public function setFechaExpedicionFactura(string $fechaExpedicionFactura): self
|
||||
|
|
|
|||
|
|
@ -1270,6 +1270,11 @@ class VerifactuInvoiceTest extends TestCase
|
|||
$validateXmlMethod = $reflectionClass->getMethod('validateXml');
|
||||
$validateXmlMethod->setAccessible(true);
|
||||
$validateXmlMethod->invoke(new Invoice(), $doc);
|
||||
|
||||
$xslt = new XsltDocumentValidator($validXml);
|
||||
$xslt->validate();
|
||||
|
||||
$this->assertCount(0, $xslt->getErrors());
|
||||
}
|
||||
|
||||
// public function testSignatureGeneration(): void
|
||||
|
|
|
|||
Loading…
Reference in New Issue