Fixes for cache

This commit is contained in:
David Bomba 2023-12-03 09:10:50 +11:00
parent d5e6084ce2
commit 6b1c9b59b8

View File

@ -11,31 +11,33 @@
namespace Tests\Integration; namespace Tests\Integration;
use App\DataMapper\CompanySettings; use Tests\TestCase;
use App\DataMapper\InvoiceItem; use App\Models\User;
use App\Factory\CompanyUserFactory;
use App\Jobs\Ledger\UpdateLedger;
use App\Models\Account;
use App\Models\Client; use App\Models\Client;
use App\Models\ClientContact; use App\Models\Account;
use App\Models\Company; use App\Models\Company;
use App\Models\CompanyLedger;
use App\Models\CompanyToken;
use App\Models\Invoice; use App\Models\Invoice;
use App\Models\Payment; use App\Models\Payment;
use App\Models\User; use App\Models\CompanyToken;
use App\Models\ClientContact;
use App\Models\CompanyLedger;
use App\Utils\Traits\AppSetup;
use App\DataMapper\InvoiceItem;
use App\Utils\Traits\MakesHash; use App\Utils\Traits\MakesHash;
use Illuminate\Foundation\Testing\DatabaseTransactions; use App\Jobs\Ledger\UpdateLedger;
use App\DataMapper\CompanySettings;
use App\Factory\CompanyUserFactory;
use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Hash;
use Illuminate\Validation\ValidationException; use Illuminate\Validation\ValidationException;
use Tests\TestCase; use Illuminate\Foundation\Testing\DatabaseTransactions;
/** @test*/ /** @test*/
class CompanyLedgerTest extends TestCase class CompanyLedgerTest extends TestCase
{ {
use DatabaseTransactions; use DatabaseTransactions;
use MakesHash; use MakesHash;
use AppSetup;
public $company; public $company;
public $client; public $client;
@ -55,7 +57,8 @@ class CompanyLedgerTest extends TestCase
$this->withoutExceptionHandling(); $this->withoutExceptionHandling();
$this->artisan('db:seed --force'); $this->artisan('db:seed --force');
$this->buildCache(true);
$this->faker = \Faker\Factory::create(); $this->faker = \Faker\Factory::create();
$fake_email = $this->faker->email(); $fake_email = $this->faker->email();