Cache building

This commit is contained in:
David Bomba 2023-04-30 21:27:27 +10:00
parent 704f9ff9c5
commit ec96e761ca

View File

@ -20,6 +20,7 @@ use App\Models\Company;
use App\Models\Expense; use App\Models\Expense;
use App\Models\Invoice; use App\Models\Invoice;
use App\Models\User; use App\Models\User;
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\TestCase; use Tests\TestCase;
@ -31,6 +32,7 @@ use Tests\TestCase;
class ProductSalesReportTest extends TestCase class ProductSalesReportTest extends TestCase
{ {
use MakesHash; use MakesHash;
use AppSetup;
public $faker; public $faker;
@ -45,6 +47,8 @@ class ProductSalesReportTest extends TestCase
); );
$this->withoutExceptionHandling(); $this->withoutExceptionHandling();
$this->buildCache(true);
} }
public $company; public $company;
@ -132,7 +136,6 @@ class ProductSalesReportTest 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',