diff --git a/tests/Feature/ClientTest.php b/tests/Feature/ClientTest.php index f39bf0f9f037..9c25aa97b1a2 100644 --- a/tests/Feature/ClientTest.php +++ b/tests/Feature/ClientTest.php @@ -297,6 +297,8 @@ class ClientTest extends TestCase $company_token->account_id = $account->id; $company_token->name = $user->first_name.' '.$user->last_name; $company_token->token = Str::random(64); + $company_token->is_system = true; + $company_token->save(); $this->token = $company_token->token; @@ -353,6 +355,7 @@ class ClientTest extends TestCase $company_token->account_id = $account->id; $company_token->name = $user->first_name.' '.$user->last_name; $company_token->token = Str::random(64); + $company_token->is_system = true; $company_token->save(); $this->token = $company_token->token; diff --git a/tests/Feature/LoginTest.php b/tests/Feature/LoginTest.php index ae2289fbd00d..6375dd9de736 100644 --- a/tests/Feature/LoginTest.php +++ b/tests/Feature/LoginTest.php @@ -160,6 +160,7 @@ class LoginTest extends TestCase $company_token->account_id = $account->id; $company_token->name = $user->first_name.' '.$user->last_name; $company_token->token = \Illuminate\Support\Str::random(64); + $company_token->is_system = true; $company_token->save(); $user->companies()->attach($company->id, [ diff --git a/tests/Feature/UserTest.php b/tests/Feature/UserTest.php index 07db7e2034ac..90d2840dbcf9 100644 --- a/tests/Feature/UserTest.php +++ b/tests/Feature/UserTest.php @@ -167,6 +167,7 @@ class UserTest extends TestCase $company_token->account_id = $this->account->id; $company_token->name = 'test token'; $company_token->token = \Illuminate\Support\Str::random(64); + $company_token->is_system = true; $company_token->save(); /*Manually link this user to the company*/ diff --git a/tests/Integration/CompanyLedgerTest.php b/tests/Integration/CompanyLedgerTest.php index e09be58ac027..76eb3eb78f61 100644 --- a/tests/Integration/CompanyLedgerTest.php +++ b/tests/Integration/CompanyLedgerTest.php @@ -128,6 +128,7 @@ class CompanyLedgerTest extends TestCase $company_token->account_id = $this->account->id; $company_token->name = 'test token'; $company_token->token = $this->token; + $company_token->is_system = true; $company_token->save(); $this->client = Client::factory()->create([