From 37db9dc1a261190399d22a5a1a2746185d31b039 Mon Sep 17 00:00:00 2001 From: Aleksei Gagarin Date: Fri, 29 Nov 2024 00:46:00 +0400 Subject: [PATCH] Run interactive command in tests with non-interactive mode (#75) --- src/Traits/InteractsWithConsole.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Traits/InteractsWithConsole.php b/src/Traits/InteractsWithConsole.php index 9fc49fb..573d496 100644 --- a/src/Traits/InteractsWithConsole.php +++ b/src/Traits/InteractsWithConsole.php @@ -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);