Skip to content

Commit

Permalink
Run interactive command in tests with non-interactive mode (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
roxblnfk authored Nov 28, 2024
1 parent a543ce7 commit 37db9dc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Traits/InteractsWithConsole.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ final public function runCommand(
?int $verbosityLevel = null
): string {
$input = new ArrayInput($args);
$input->setInteractive(false);
$output = $output ?? new BufferedOutput();
$output->setVerbosity($verbosityLevel ?? $this->defaultVerbosityLevel);

Expand Down

0 comments on commit 37db9dc

Please sign in to comment.