solve unit tests

This commit is contained in:
harshjagad20
2021-12-01 13:25:24 +05:30
parent f57fa41640
commit 88bfb38b56
33 changed files with 205 additions and 219 deletions

View File

@ -8,10 +8,10 @@ beforeEach(function () {
Artisan::call('db:seed', ['--class' => 'DemoSeeder', '--force' => true]);
});
test('company has one customer', function () {
$company = Company::factory()->hasCustomer()->create();
test('company has many customers', function () {
$company = Company::factory()->hasCustomers()->create();
$this->assertTrue($company->customer()->exists());
$this->assertTrue($company->customers()->exists());
});
test('company has many company setings', function () {