diff --git a/tests/Feature/Common/ItemsTest.php b/tests/Feature/Common/ItemsTest.php index 100c1326a..5ff8188c9 100644 --- a/tests/Feature/Common/ItemsTest.php +++ b/tests/Feature/Common/ItemsTest.php @@ -62,7 +62,7 @@ class ItemsTest extends FeatureTestCase public function testItShouldDeleteItem() { - $item = factory(Item::class)->create(); + $item = Item::create($this->getItemRequest()); $this->loginAs() ->delete(route('items.destroy', ['item' => $item]))