We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f35f870 commit be6957cCopy full SHA for be6957c
tests/Feature/Http/Controllers/OutputControllerTest.php
@@ -49,4 +49,16 @@ public function test_delete_with_access(): void
49
50
$this->assertSoftDeleted($output);
51
}
52
+
53
+ public function test_delete_sending_id(): void
54
+ {
55
+ $output = Output::factory()->create();
56
57
+ $this->actingAs(User::factory()->create([
58
+ 'is_admin' => true,
59
+ ]));
60
61
+ $response = $this->delete(route('collections.outputs.delete', $output->id));
62
+ $response->assertRedirectToRoute('collections.outputs.index', $output->collection);
63
+ }
64
0 commit comments