A free open source IT asset/license management system
Implement test
Marcus Mooref1bf9fcf5c72
diff --git a/app/Http/Controllers/NotesController.php b/app/Http/Controllers/NotesController.phpindex 8a73b80e2e..ecac627c0f 100644--- a/app/Http/Controllers/NotesController.php+++ b/app/Http/Controllers/NotesController.php@@ -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',diff --git a/tests/Feature/Notes/CreateNotesTest.php b/tests/Feature/Notes/CreateNotesTest.phpindex 84c8ec34bf..dedcabf0f7 100644--- a/tests/Feature/Notes/CreateNotesTest.php+++ b/tests/Feature/Notes/CreateNotesTest.php@@ -10,8 +10,6 @@ class CreateNotesTest extends TestCase{public function testRequiresPermission(){- $this->markTestIncomplete();-$this->actingAs(User::factory()->create())->post(route('notes.store'))->assertForbidden();