Fixes for tests
This commit is contained in:
parent
80b6fd7690
commit
74b2b4c14b
|
|
@ -541,12 +541,16 @@ class PeppolTest extends TestCase
|
|||
[
|
||||
'cbc:StartDate' => $invoice->date,
|
||||
'cbc:EndDate' => $invoice->due_date ?? $invoice->date,
|
||||
'StartDate' => $invoice->date,
|
||||
'EndDate' => $invoice->due_date ?? $invoice->date,
|
||||
]
|
||||
]
|
||||
]
|
||||
];
|
||||
$invoice->save();
|
||||
|
||||
$this->assertNotNull($invoice->e_invoice->Invoice->InvoicePeriod[0]->StartDate); //@phpstan-ignore-line
|
||||
|
||||
$repo = new InvoiceRepository();
|
||||
$invoice = $repo->save([], $invoice);
|
||||
$invoice = $invoice->service()->markSent()->save();
|
||||
|
|
@ -676,6 +680,8 @@ class PeppolTest extends TestCase
|
|||
[
|
||||
'cbc:StartDate' => $invoice->date,
|
||||
'cbc:EndDate' => $invoice->due_date ?? $invoice->date,
|
||||
'StartDate' => $invoice->date,
|
||||
'EndDate' => $invoice->due_date ?? $invoice->date,
|
||||
]
|
||||
]
|
||||
]
|
||||
|
|
@ -723,6 +729,8 @@ class PeppolTest extends TestCase
|
|||
[
|
||||
'cbc:StartDate' => $invoice->date,
|
||||
'cbc:EndDate' => $invoice->due_date ?? $invoice->date,
|
||||
'StartDate' => $invoice->date,
|
||||
'EndDate' => $invoice->due_date ?? $invoice->date,
|
||||
]
|
||||
]
|
||||
]
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ class QuickbooksMappingTest extends TestCase
|
|||
parent::setUp();
|
||||
|
||||
|
||||
if (config('ninja.testvars.travis') !== false) {
|
||||
if (config('ninja.testvars.travis') !== false || !config('services.quickbooks.client_id')) {
|
||||
$this->markTestSkipped('Skip test for GH Actions');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue