Implement test

This commit is contained in:
Marcus Moore 2025-02-20 12:51:08 -08:00
parent 992b4c7d86
commit f1bf9fcf5c
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -12,6 +12,8 @@ class NotesController extends Controller
{
public function store(Request $request)
{
$this->authorize('update', Asset::class);
$validated = $request->validate([
'id' => 'required',
'note' => 'required|string|max:500',

View file

@ -10,8 +10,6 @@ class CreateNotesTest extends TestCase
{
public function testRequiresPermission()
{
$this->markTestIncomplete();
$this->actingAs(User::factory()->create())
->post(route('notes.store'))
->assertForbidden();