customer test fixed export issue..

this issue reason b5300e416c/database/seeds/TestCompany.php (L76)
This commit is contained in:
Cüneyt Şentürk 2021-02-12 18:10:20 +03:00
parent 46fdbc5d8a
commit 463d89a4e2

View File

@ -112,7 +112,6 @@ class CustomersTest extends FeatureTestCase
$this->assertFlashLevel('success');
$this->assertSoftDeleted('contacts', $request);
}
public function testItShouldNotDeleteCustomerIfHasRelations()
@ -136,7 +135,7 @@ class CustomersTest extends FeatureTestCase
\Str::filename(trans_choice('general.customers', 2)) . '.xlsx',
function (Export $export) use ($count) {
// Assert that the correct export is downloaded.
return $export->collection()->count() === $count;
return $export->collection()->count() === $count + 1;
}
);
}