mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 06:14:35 -04:00
Cache building
This commit is contained in:
parent
704f9ff9c5
commit
ec96e761ca
@ -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',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user