| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | public function user_can_create_a_new_contact(): void |
||
| 27 | { |
||
| 28 | $contact = factory(Contact::class)->make(); |
||
| 29 | |||
| 30 | ParasutMock::createContact($contact); |
||
|
|
|||
| 31 | |||
| 32 | $contactRepository = new ContactRepository(); |
||
| 33 | |||
| 34 | $contactReturned = $contactRepository->create($contact); |
||
| 35 | |||
| 36 | $this->assertInstanceOf( |
||
| 37 | Contact::class, |
||
| 38 | $contact |
||
| 39 | ); |
||
| 40 | |||
| 41 | $this->assertEquals( |
||
| 42 | $contact->name, |
||
| 43 | $contactReturned->name |
||
| 44 | ); |
||
| 67 |