Skip to content
This repository has been archived by the owner on Dec 27, 2019. It is now read-only.

Commit

Permalink
fixes tests. ref laravel-enso/enso#97
Browse files Browse the repository at this point in the history
  • Loading branch information
aocneanu committed May 9, 2018
1 parent 85f0dfb commit 042f2c9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/features/ContactTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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()]);
}

Expand Down

0 comments on commit 042f2c9

Please sign in to comment.