Fixes for tests

This commit is contained in:
David Bomba 2023-10-25 20:42:55 +11:00
parent bc0690fafc
commit 1edb890b7f
2 changed files with 6 additions and 1 deletions

View File

@ -37,6 +37,8 @@ class ClientMergeTest extends TestCase
private $primary_contact; private $primary_contact;
public $faker;
protected function setUp(): void protected function setUp(): void
{ {
parent::setUp(); parent::setUp();

View File

@ -19,6 +19,7 @@ use App\Models\Company;
use App\Models\Invoice; use App\Models\Invoice;
use App\Models\User; use App\Models\User;
use App\Services\Report\ARDetailReport; use App\Services\Report\ARDetailReport;
use App\Utils\Traits\AppSetup;
use App\Utils\Traits\MakesHash; use App\Utils\Traits\MakesHash;
use Illuminate\Routing\Middleware\ThrottleRequests; use Illuminate\Routing\Middleware\ThrottleRequests;
use Tests\MockAccountData; use Tests\MockAccountData;
@ -30,6 +31,7 @@ use Tests\TestCase;
class ArDetailReportTest extends TestCase class ArDetailReportTest extends TestCase
{ {
use MakesHash; use MakesHash;
use AppSetup;
public $faker; public $faker;
@ -44,6 +46,8 @@ class ArDetailReportTest extends TestCase
); );
$this->withoutExceptionHandling(); $this->withoutExceptionHandling();
$this->buildCache(true);
} }
@ -132,7 +136,6 @@ class ArDetailReportTest extends TestCase
{ {
$this->buildData(); $this->buildData();
$this->payload = [ $this->payload = [
'start_date' => '2000-01-01', 'start_date' => '2000-01-01',
'end_date' => '2030-01-11', 'end_date' => '2030-01-11',