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

@@ -2,6 +2,7 @@
namespace Tests\Feature\Console;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Config;
use Tests\FeatureTestCase;
@@ -22,6 +23,11 @@ class ResetDemoTest extends FeatureTestCase
*/
public function test_reset_demo_succeeded()
{
Artisan::call('passport:install', [
'--verbose' => 2,
'--no-interaction' => 1
]);
Config::set('2fauth.config.isDemoApp', true);
$this->artisan('2fauth:reset-demo')