From 80163ee87c1359c6a102e5af397ba8597d3ebfab Mon Sep 17 00:00:00 2001 From: miladev-ent Date: Wed, 12 Apr 2023 11:52:30 +0330 Subject: [PATCH] fix CategoryDestroyTest --- Modules/Category/Tests/Feature/CategoryDestroyTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/Category/Tests/Feature/CategoryDestroyTest.php b/Modules/Category/Tests/Feature/CategoryDestroyTest.php index 94ad943..d2cedc7 100644 --- a/Modules/Category/Tests/Feature/CategoryDestroyTest.php +++ b/Modules/Category/Tests/Feature/CategoryDestroyTest.php @@ -20,7 +20,7 @@ test('test login user can delete category', function () { $user = User::factory()->create(); - $category = Category::factory()->create(); + $category = Category::factory()->create(['user_id' => $user->id]); actingAs($user)->deleteJson(route('categories.destroy', $category->id))->assertNoContent();