diff --git a/tests/Feature/Export/ProductSalesReportTest.php b/tests/Feature/Export/ProductSalesReportTest.php index 8684533f7a35..f530acb3f3ec 100644 --- a/tests/Feature/Export/ProductSalesReportTest.php +++ b/tests/Feature/Export/ProductSalesReportTest.php @@ -20,6 +20,7 @@ use App\Models\Company; use App\Models\Expense; use App\Models\Invoice; use App\Models\User; +use App\Utils\Traits\AppSetup; use App\Utils\Traits\MakesHash; use Illuminate\Routing\Middleware\ThrottleRequests; use Tests\TestCase; @@ -31,6 +32,7 @@ use Tests\TestCase; class ProductSalesReportTest extends TestCase { use MakesHash; + use AppSetup; public $faker; @@ -45,6 +47,8 @@ class ProductSalesReportTest extends TestCase ); $this->withoutExceptionHandling(); + + $this->buildCache(true); } public $company; @@ -132,7 +136,6 @@ class ProductSalesReportTest extends TestCase { $this->buildData(); - $this->payload = [ 'start_date' => '2000-01-01', 'end_date' => '2030-01-11',