diff --git a/tests/Feature/Sales/CustomersTest.php b/tests/Feature/Sales/CustomersTest.php index 56acf0901..ddc78c1e6 100644 --- a/tests/Feature/Sales/CustomersTest.php +++ b/tests/Feature/Sales/CustomersTest.php @@ -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; } ); }