updated test routes

This commit is contained in:
denisdulici
2020-01-13 10:55:19 +03:00
parent b6f916ce4b
commit e5a11c3f44
16 changed files with 67 additions and 31 deletions

View File

@ -38,7 +38,7 @@ class ItemsTest extends FeatureTestCase
$item = $this->dispatch(new CreateItem($this->getRequest()));
$this->loginAs()
->get(route('items.edit', ['item' => $item->id]))
->get(route('items.edit', $item->id))
->assertStatus(200)
->assertSee($item->name);
}
@ -63,7 +63,7 @@ class ItemsTest extends FeatureTestCase
$item = $this->dispatch(new CreateItem($this->getRequest()));
$this->loginAs()
->delete(route('items.destroy', ['item' => $item]))
->delete(route('items.destroy', $item->id))
->assertStatus(200);
$this->assertFlashLevel('success');