Skip to content

Commit 80163ee

Browse files
committed
fix CategoryDestroyTest
1 parent 0a69e57 commit 80163ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/Category/Tests/Feature/CategoryDestroyTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
test('test login user can delete category', function () {
2222
$user = User::factory()->create();
23-
$category = Category::factory()->create();
23+
$category = Category::factory()->create(['user_id' => $user->id]);
2424

2525
actingAs($user)->deleteJson(route('categories.destroy', $category->id))->assertNoContent();
2626

0 commit comments

Comments
 (0)