mirror of
https://github.com/crater-invoice/crater.git
synced 2025-12-16 10:22:55 -05: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