diff --git a/tests/Integration/Einvoice/FACT1Test.php b/tests/Integration/Einvoice/FACT1Test.php new file mode 100644 index 000000000000..11433b9beaa7 --- /dev/null +++ b/tests/Integration/Einvoice/FACT1Test.php @@ -0,0 +1,73 @@ +assertIsArray($rules); + + $payload = Invoice::from($payload)->toArray(); + nlog($payload); + $this->assertIsArray($payload); + + $validation_array = Invoice::validate($payload); + + $this->assertIsArray($validation_array); + + } catch(\Illuminate\Validation\ValidationException $e) { + + nlog($e->errors()); + } + + $this->assertIsArray($validation_array); + + } + + + } +} \ No newline at end of file diff --git a/app/Services/EDocument/Samples/ro.xml b/tests/Integration/Einvoice/samples/fact1.xml similarity index 100% rename from app/Services/EDocument/Samples/ro.xml rename to tests/Integration/Einvoice/samples/fact1.xml