fixed tests

This commit is contained in:
denisdulici
2019-11-18 10:54:26 +03:00
parent 63ab57730d
commit 2cdc431f8c
17 changed files with 123 additions and 154 deletions

View File

@ -49,17 +49,6 @@ class CustomersTest extends FeatureTestCase
$this->assertEquals($customer['email'], $user->email);
}
public function testItShouldNotCreateCustomerWithExistsUser()
{
$customer = $this->getCustomerRequestWithUser();
User::create($customer);
$this->loginAs()
->post(route('customers.store'), $customer)
->assertSessionHasErrors(['email']);
}
public function testItShouldSeeCustomerDetailPage()
{
$customer = $this->dispatch(new CreateContact($this->getCustomerRequest()));