Skip to content

API reference

Quittio\Laravel\Testing

quittio/laravel#

Quittio\Laravel\Testing

  • EInvoiceAssertionsThe assertions of {@see InteractsWithQuittio} outside a test case class, e.g. in Pest helper functions: (new EInvoiceAssertions)->assertValidEInvoice($pdf, 'xrechnung').
  • InteractsWithQuittio traitAssertions for feature tests.
  • QuittioFakeCalculates invoices and chooses formats and profiles like a real run (requested formats, defaults.format, the automatic choice, profile keys and objects, defaults.profile), but skips validation, XML, template and PDF. Records every render call and every queued render, and dispatches the events of a real run (InvoiceRendering, InvoiceValidated with an empty result unless validation is off, InvoiceRendered).

The open core packages are MIT licensed. The legal wording of the country packs must be confirmed by a tax adviser.