From ca9c8a5f79e49b80be7ac606bf0102b2d86cf026 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20J=C3=B8nsson?= Date: Wed, 28 Feb 2024 13:43:55 +0100 Subject: [PATCH] Feature/invoice pdf (#19) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ✨ Add Pdf class * ✨ Use Pdf class for Invoice Pdf * ✅ Add test for Invoice pdf class --- src/DTOs/Invoice/Pdf.php | 10 ++++++++++ src/Resources/Invoice/Invoice.php | 3 ++- tests/Unit/InvoiceTest.php | 2 ++ 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 src/DTOs/Invoice/Pdf.php diff --git a/src/DTOs/Invoice/Pdf.php b/src/DTOs/Invoice/Pdf.php new file mode 100644 index 0000000..361491c --- /dev/null +++ b/src/DTOs/Invoice/Pdf.php @@ -0,0 +1,10 @@ +toBeInstanceOf(BookedInvoice::class) + ->pdf->toBeInstanceOf(Pdf::class) ->bookedInvoiceNumber->toBe(300); });