We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a69e57 commit 80163eeCopy full SHA for 80163ee
Modules/Category/Tests/Feature/CategoryDestroyTest.php
@@ -20,7 +20,7 @@
20
21
test('test login user can delete category', function () {
22
$user = User::factory()->create();
23
- $category = Category::factory()->create();
+ $category = Category::factory()->create(['user_id' => $user->id]);
24
25
actingAs($user)->deleteJson(route('categories.destroy', $category->id))->assertNoContent();
26
0 commit comments