Merge pull request #129 from iammikek/feature/fix-model-names

fixing case of contact model in tests
This commit is contained in:
Jonathan Reinink 2021-05-04 07:05:18 -04:00 committed by GitHub
commit 74bca92615
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)