diff --git a/src/Console/InstallCommand.php b/src/Console/InstallCommand.php index 0086eda..8ec8388 100644 --- a/src/Console/InstallCommand.php +++ b/src/Console/InstallCommand.php @@ -184,11 +184,11 @@ protected function promptForMissingArgumentsUsing(): array protected function afterPromptingForMissingArguments(InputInterface $input, OutputInterface $output): void { if ($this->isUsingFilament()) { - $input->setOption('pest', $this->option('pest') || select( - label: 'Which testing framework do you prefer?', - options: ['PHPUnit', 'Pest'], - default: $this->isUsingPest() ? 'Pest' : 'PHPUnit' - ) === 'Pest'); + $input->setOption('pest', $this->isUsingPest() || $this->option('pest') || select( + label: 'Which testing framework do you prefer?', + options: ['PHPUnit', 'Pest'], + default: $this->isUsingPest() ? 'Pest' : 'PHPUnit' + ) === 'Pest'); return; } @@ -240,10 +240,10 @@ protected function afterPromptingForMissingArguments(InputInterface $input, Outp )); } - $input->setOption('pest', $this->option('pest') || select( + $input->setOption('pest', $this->isUsingPest() || $this->option('pest') || select( label: 'Which testing framework do you prefer?', options: ['PHPUnit', 'Pest'], - default: $this->isUsingPest() ? 'pest' : 'phpunit' + default: $this->isUsingPest() ? 'Pest' : 'PHPUnit' ) === 'Pest'); } }