mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-03 06:44:37 -04:00
Fixes for global tests
This commit is contained in:
parent
b5f2ae6d6b
commit
8a23ed35ea
@ -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');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user