1<?php
2
3// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
4// See the LICENCE file in the repository root for full licence text.
5
6namespace Tests\Controllers\Passport;
7
8use App\Models\User;
9use Tests\TestCase;
10
11class ApproveAuthorizationControllerTest extends TestCase
12{
13 public function testApproveWithInvalidSession(): void
14 {
15 $user = User::factory()->create();
16
17 $this->actingAsVerified($user)
18 ->post(route('oauth.authorizations.authorize'))
19 ->assertStatus(422);
20 }
21}