Update passport:install invocation to prevent unwanted confirmations

This commit is contained in:
Bubka
2024-06-26 14:14:45 +02:00
parent dd44b49c4e
commit b8b4d22efb
9 changed files with 48 additions and 9 deletions

View File

@ -13,6 +13,7 @@ use Illuminate\Auth\Notifications\ResetPassword;
use Illuminate\Http\Request;
use Illuminate\Support\Arr;
use Illuminate\Support\Carbon;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Notification;
@ -325,6 +326,11 @@ class UserManagerControllerTest extends FeatureTestCase
*/
public function test_revokePATs_flushes_pats()
{
Artisan::call('passport:install', [
'--verbose' => 2,
'--no-interaction' => 1
]);
$tokenRepository = app(TokenRepository::class);
$this->actingAs($this->user, 'api-guard')