From 042f2c91a24898e0f61167e947b97cafa40be20a Mon Sep 17 00:00:00 2001 From: mishu Date: Wed, 9 May 2018 08:59:44 +0300 Subject: [PATCH] fixes tests. ref laravel-enso/enso#97 --- tests/features/ContactTest.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/features/ContactTest.php b/tests/features/ContactTest.php index 18ddce3..826bed0 100644 --- a/tests/features/ContactTest.php +++ b/tests/features/ContactTest.php @@ -21,7 +21,7 @@ protected function setUp() { parent::setUp(); - // $this->withoutExceptionHandling(); + $this->withoutExceptionHandling(); $this->signIn(User::first()); $this->owner = Owner::first(); $this->faker = Factory::create(); @@ -32,7 +32,10 @@ public function index() { $contact = $this->createContact(); - $this->call('GET', route('core.contacts.index', ['owner', $this->owner->id], false))->assertStatus(200) + $this->get(route('core.contacts.index', [ + 'type' => 'owner', 'id' => $this->owner->id + ], false)) + ->assertStatus(200) ->assertJson([$contact->toArray()]); }