fix: adopt changes in test

This commit is contained in:
Björn Fromme
2025-03-18 18:07:52 +01:00
parent bd1cd68cff
commit 3ad8b59ba1
+3 -2
View File
@@ -66,11 +66,12 @@ class InvoiceRendererTest extends WebTestCase
->setCode('ABC123') ->setCode('ABC123')
->setDateFrom(new \DateTimeImmutable('2023-12-01')) ->setDateFrom(new \DateTimeImmutable('2023-12-01'))
->setDateTo(new \DateTimeImmutable('2023-12-08')) ->setDateTo(new \DateTimeImmutable('2023-12-08'))
->setCostUnit('FOO123') ->setCostUnit('200')
; ;
$jobProfile = new JobProfile(); $jobProfile = new JobProfile();
$jobProfile->setName('Allrounder'); $jobProfile->setName('Allrounder');
$jobProfile->setCostUnit('300');
$contact = new User(); $contact = new User();
$contact $contact
@@ -84,7 +85,6 @@ class InvoiceRendererTest extends WebTestCase
->setDestination($destination) ->setDestination($destination)
->setJobProfile($jobProfile) ->setJobProfile($jobProfile)
->setContact($contact) ->setContact($contact)
->setCostCenter('BAR456')
; ;
$application = new Application($assignment, $teamer); $application = new Application($assignment, $teamer);
@@ -98,6 +98,7 @@ class InvoiceRendererTest extends WebTestCase
$invoice = new Upload(); $invoice = new Upload();
$invoice $invoice
->setType(Upload::TYPE_INVOICE) ->setType(Upload::TYPE_INVOICE)
->setMimeType('application/pdf')
->setFilename('Honorarnote.pdf') ->setFilename('Honorarnote.pdf')
->setApprovedBy('FOO') ->setApprovedBy('FOO')
->setApprovedAt(new \DateTimeImmutable()) ->setApprovedAt(new \DateTimeImmutable())