Skip to content

Commit a490a1a

Browse files
committed
disable interaction in all command tests
1 parent ff102e3 commit a490a1a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/TestCase.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ public function resolveApplicationConsoleKernel($app)
6262
$app->singleton('Illuminate\Contracts\Console\Kernel', Kernel::class);
6363
}
6464

65+
public function artisan($command, $parameters = [])
66+
{
67+
parent::artisan($command, array_merge($parameters, ['--no-interaction' => true]));
68+
}
69+
6570
public function consoleOutput()
6671
{
6772
return $this->consoleOutput ?: $this->consoleOutput = $this->app[Kernel::class]->output();

0 commit comments

Comments
 (0)