Fixes for global tests

This commit is contained in:
Benjamin Beganović 2020-08-10 18:40:04 +02:00
parent b5f2ae6d6b
commit 8a23ed35ea

View File

@ -7,15 +7,23 @@ use App\Services\PdfMaker\Designs\Playful;
use App\Services\PdfMaker\PdfMaker; use App\Services\PdfMaker\PdfMaker;
use App\Utils\HtmlEngine; use App\Utils\HtmlEngine;
use App\Utils\Traits\MakesInvoiceValues; use App\Utils\Traits\MakesInvoiceValues;
use Tests\MockAccountData;
use Tests\TestCase; use Tests\TestCase;
class ExampleIntegrationTest extends TestCase class ExampleIntegrationTest extends TestCase
{ {
use MakesInvoiceValues; use MakesInvoiceValues, MockAccountData;
public function setUp(): void
{
parent::setUp();
$this->makeTestData();
}
public function testExample() public function testExample()
{ {
$invoice = Invoice::first(); $invoice = $this->invoice;
$invitation = $invoice->invitations()->first(); $invitation = $invoice->invitations()->first();
$engine = new HtmlEngine(null, $invitation, 'invoice'); $engine = new HtmlEngine(null, $invitation, 'invoice');