mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-29 12:41:10 -04:00
solve unit tests
This commit is contained in:
@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user