From 8a23ed35ea83b655775df3f9415ca10d5de0081d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Mon, 10 Aug 2020 18:40:04 +0200 Subject: [PATCH] Fixes for global tests --- tests/Feature/PdfMaker/ExampleIntegrationTest.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tests/Feature/PdfMaker/ExampleIntegrationTest.php b/tests/Feature/PdfMaker/ExampleIntegrationTest.php index 98a2ca6148f8..1996280fdc51 100644 --- a/tests/Feature/PdfMaker/ExampleIntegrationTest.php +++ b/tests/Feature/PdfMaker/ExampleIntegrationTest.php @@ -7,15 +7,23 @@ use App\Services\PdfMaker\Designs\Playful; use App\Services\PdfMaker\PdfMaker; use App\Utils\HtmlEngine; use App\Utils\Traits\MakesInvoiceValues; +use Tests\MockAccountData; use Tests\TestCase; class ExampleIntegrationTest extends TestCase { - use MakesInvoiceValues; + use MakesInvoiceValues, MockAccountData; + + public function setUp(): void + { + parent::setUp(); + + $this->makeTestData(); + } public function testExample() { - $invoice = Invoice::first(); + $invoice = $this->invoice; $invitation = $invoice->invitations()->first(); $engine = new HtmlEngine(null, $invitation, 'invoice');