diff --git a/tests/Feature/Purchases/VendorsTest.php b/tests/Feature/Purchases/VendorsTest.php index 30faf8925..2a14a4e37 100644 --- a/tests/Feature/Purchases/VendorsTest.php +++ b/tests/Feature/Purchases/VendorsTest.php @@ -113,8 +113,8 @@ class VendorsTest extends FeatureTestCase public function testItShouldExportVendors() { - $count = 5; - Contact::factory()->vendor()->count($count)->create(); + Contact::factory()->vendor()->count(5)->create(); + $count = Contact::vendor()->count(); \Excel::fake(); diff --git a/tests/Feature/Sales/CustomersTest.php b/tests/Feature/Sales/CustomersTest.php index bc22e6602..ac2b19f3b 100644 --- a/tests/Feature/Sales/CustomersTest.php +++ b/tests/Feature/Sales/CustomersTest.php @@ -135,7 +135,7 @@ class CustomersTest extends FeatureTestCase public function testItShouldExportCustomers() { Contact::factory()->customer()->count(5)->create(); - $count = Contact::count(); + $count = Contact::customer()->count(); \Excel::fake();