diff --git a/tests/Feature/Purchases/BillsTest.php b/tests/Feature/Purchases/BillsTest.php index a5e3791fa..51abdab5f 100644 --- a/tests/Feature/Purchases/BillsTest.php +++ b/tests/Feature/Purchases/BillsTest.php @@ -58,12 +58,12 @@ class BillsTest extends FeatureTestCase $bill = $this->dispatch(new CreateBill($request)); - $request['contact_name'] = $this->faker->name; + $request['contact_email'] = $this->faker->safeEmail; $this->loginAs() ->patch(route('bills.update', $bill->id), $request) ->assertStatus(200) - ->assertSee($request['contact_name']); + ->assertSee($request['contact_email']); $this->assertFlashLevel('success'); } diff --git a/tests/Feature/Purchases/VendorsTest.php b/tests/Feature/Purchases/VendorsTest.php index 1873b81dc..f9bdebfc7 100644 --- a/tests/Feature/Purchases/VendorsTest.php +++ b/tests/Feature/Purchases/VendorsTest.php @@ -59,12 +59,12 @@ class VendorsTest extends FeatureTestCase $vendor = $this->dispatch(new CreateContact($request)); - $request['name'] = $this->faker->name; + $request['email'] = $this->faker->safeEmail; $this->loginAs() ->patch(route('vendors.update', $vendor->id), $request) ->assertStatus(200) - ->assertSee($request['name']); + ->assertSee($request['email']); $this->assertFlashLevel('success'); } diff --git a/tests/Feature/Sales/CustomersTest.php b/tests/Feature/Sales/CustomersTest.php index d76a21565..fa8f88816 100644 --- a/tests/Feature/Sales/CustomersTest.php +++ b/tests/Feature/Sales/CustomersTest.php @@ -76,12 +76,12 @@ class CustomersTest extends FeatureTestCase $customer = $this->dispatch(new CreateContact($request)); - $request['name'] = $this->faker->name; + $request['email'] = $this->faker->safeEmail; $this->loginAs() ->patch(route('customers.update', $customer->id), $request) ->assertStatus(200) - ->assertSee($request['name']); + ->assertSee($request['email']); $this->assertFlashLevel('success'); } diff --git a/tests/Feature/Sales/InvoicesTest.php b/tests/Feature/Sales/InvoicesTest.php index 787d11717..5f34926e1 100644 --- a/tests/Feature/Sales/InvoicesTest.php +++ b/tests/Feature/Sales/InvoicesTest.php @@ -58,12 +58,12 @@ class InvoicesTest extends FeatureTestCase $invoice = $this->dispatch(new CreateInvoice($request)); - $request['contact_name'] = $this->faker->name; + $request['contact_email'] = $this->faker->safeEmail; $this->loginAs() ->patch(route('invoices.update', $invoice->id), $request) ->assertStatus(200) - ->assertSee($request['contact_name']); + ->assertSee($request['contact_email']); $this->assertFlashLevel('success'); }