fixing case of contact model in tests

This commit is contained in:
mkarthauser 2021-04-30 18:55:07 +01:00
parent f8ae3ce404
commit 02572a814a
1 changed files with 3 additions and 3 deletions

View File

@ -49,7 +49,7 @@ class ContactsTest extends TestCase
public function test_can_search_for_contacts() public function test_can_search_for_contacts()
{ {
$this->user->account->contacts()->saveMany( $this->user->account->contacts()->saveMany(
factory(contact::class, 5)->make() factory(Contact::class, 5)->make()
)->first()->update([ )->first()->update([
'first_name' => 'Greg', 'first_name' => 'Greg',
'last_name' => 'Andersson' 'last_name' => 'Andersson'
@ -68,7 +68,7 @@ class ContactsTest extends TestCase
public function test_cannot_view_deleted_contacts() public function test_cannot_view_deleted_contacts()
{ {
$this->user->account->contacts()->saveMany( $this->user->account->contacts()->saveMany(
factory(contact::class, 5)->make() factory(Contact::class, 5)->make()
)->first()->delete(); )->first()->delete();
$this->actingAs($this->user) $this->actingAs($this->user)
@ -80,7 +80,7 @@ class ContactsTest extends TestCase
public function test_can_filter_to_view_deleted_contacts() public function test_can_filter_to_view_deleted_contacts()
{ {
$this->user->account->contacts()->saveMany( $this->user->account->contacts()->saveMany(
factory(contact::class, 5)->make() factory(Contact::class, 5)->make()
)->first()->delete(); )->first()->delete();
$this->actingAs($this->user) $this->actingAs($this->user)