From 3ad8b59ba1a6a3000f08f59d388cd12e3e06e87d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Tue, 18 Mar 2025 18:07:52 +0100 Subject: [PATCH] fix: adopt changes in test --- tests/Service/Pdf/InvoiceRendererTest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/Service/Pdf/InvoiceRendererTest.php b/tests/Service/Pdf/InvoiceRendererTest.php index 59c7f2d..86572f1 100644 --- a/tests/Service/Pdf/InvoiceRendererTest.php +++ b/tests/Service/Pdf/InvoiceRendererTest.php @@ -66,11 +66,12 @@ class InvoiceRendererTest extends WebTestCase ->setCode('ABC123') ->setDateFrom(new \DateTimeImmutable('2023-12-01')) ->setDateTo(new \DateTimeImmutable('2023-12-08')) - ->setCostUnit('FOO123') + ->setCostUnit('200') ; $jobProfile = new JobProfile(); $jobProfile->setName('Allrounder'); + $jobProfile->setCostUnit('300'); $contact = new User(); $contact @@ -84,7 +85,6 @@ class InvoiceRendererTest extends WebTestCase ->setDestination($destination) ->setJobProfile($jobProfile) ->setContact($contact) - ->setCostCenter('BAR456') ; $application = new Application($assignment, $teamer); @@ -98,6 +98,7 @@ class InvoiceRendererTest extends WebTestCase $invoice = new Upload(); $invoice ->setType(Upload::TYPE_INVOICE) + ->setMimeType('application/pdf') ->setFilename('Honorarnote.pdf') ->setApprovedBy('FOO') ->setApprovedAt(new \DateTimeImmutable())