Merge pull request #129 from iammikek/feature/fix-model-names
fixing case of contact model in tests
This commit is contained in:
commit
74bca92615
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue