Implement test
This commit is contained in:
parent
992b4c7d86
commit
f1bf9fcf5c
2 changed files with 2 additions and 2 deletions
|
@ -12,6 +12,8 @@ class NotesController extends Controller
|
||||||
{
|
{
|
||||||
public function store(Request $request)
|
public function store(Request $request)
|
||||||
{
|
{
|
||||||
|
$this->authorize('update', Asset::class);
|
||||||
|
|
||||||
$validated = $request->validate([
|
$validated = $request->validate([
|
||||||
'id' => 'required',
|
'id' => 'required',
|
||||||
'note' => 'required|string|max:500',
|
'note' => 'required|string|max:500',
|
||||||
|
|
|
@ -10,8 +10,6 @@ class CreateNotesTest extends TestCase
|
||||||
{
|
{
|
||||||
public function testRequiresPermission()
|
public function testRequiresPermission()
|
||||||
{
|
{
|
||||||
$this->markTestIncomplete();
|
|
||||||
|
|
||||||
$this->actingAs(User::factory()->create())
|
$this->actingAs(User::factory()->create())
|
||||||
->post(route('notes.store'))
|
->post(route('notes.store'))
|
||||||
->assertForbidden();
|
->assertForbidden();
|
||||||
|
|
Loading…
Add table
Reference in a new issue