customer test fixed export issue..
this issue reason b5300e416c/database/seeds/TestCompany.php (L76)
This commit is contained in:
parent
46fdbc5d8a
commit
463d89a4e2
@ -112,7 +112,6 @@ class CustomersTest extends FeatureTestCase
|
|||||||
$this->assertFlashLevel('success');
|
$this->assertFlashLevel('success');
|
||||||
|
|
||||||
$this->assertSoftDeleted('contacts', $request);
|
$this->assertSoftDeleted('contacts', $request);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testItShouldNotDeleteCustomerIfHasRelations()
|
public function testItShouldNotDeleteCustomerIfHasRelations()
|
||||||
@ -136,7 +135,7 @@ class CustomersTest extends FeatureTestCase
|
|||||||
\Str::filename(trans_choice('general.customers', 2)) . '.xlsx',
|
\Str::filename(trans_choice('general.customers', 2)) . '.xlsx',
|
||||||
function (Export $export) use ($count) {
|
function (Export $export) use ($count) {
|
||||||
// Assert that the correct export is downloaded.
|
// Assert that the correct export is downloaded.
|
||||||
return $export->collection()->count() === $count;
|
return $export->collection()->count() === $count + 1;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user