| Total Complexity | 3 |
| Total Lines | 54 |
| Duplicated Lines | 0 % |
| Changes | 8 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class ContactTest extends TestCase |
||
| 11 | { |
||
| 12 | /** @test */ |
||
| 13 | public function user_can_list_contacts(): void |
||
| 14 | { |
||
| 15 | ParasutMock::allContacts(); |
||
| 16 | |||
| 17 | $contactRepository = new ContactRepository(); |
||
| 18 | |||
| 19 | $contacts = $contactRepository->all(); |
||
| 20 | |||
| 21 | $this->assertNotNull(Contact::all()); |
||
| 22 | $this->assertInstanceOf(Contact::class, $contacts->first()); |
||
| 23 | } |
||
| 24 | |||
| 25 | /** @test */ |
||
| 26 | public function user_can_create_a_new_contact(): void |
||
| 44 | ); |
||
| 45 | } |
||
| 46 | |||
| 47 | /** @test */ |
||
| 48 | public function user_can_view_a_contact(): void |
||
| 64 | ); |
||
| 65 | } |
||
| 67 |