Skip to content

Commit

Permalink
fix CategoryDestroyTest
Browse files Browse the repository at this point in the history
  • Loading branch information
milwad-dev committed Apr 12, 2023
1 parent 0a69e57 commit 80163ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/Category/Tests/Feature/CategoryDestroyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 80163ee

Please sign in to comment.