mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Implement test
This commit is contained in:
parent
992b4c7d86
commit
f1bf9fcf5c
|
@ -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',
|
||||
|
|
|
@ -10,8 +10,6 @@ class CreateNotesTest extends TestCase
|
|||
{
|
||||
public function testRequiresPermission()
|
||||
{
|
||||
$this->markTestIncomplete();
|
||||
|
||||
$this->actingAs(User::factory()->create())
|
||||
->post(route('notes.store'))
|
||||
->assertForbidden();
|
||||
|
|
Loading…
Reference in a new issue