tests: remove L5.5 workaround (#1023)

This commit is contained in:
Markus Podar
2020-08-29 08:12:11 +02:00
committed by GitHub
parent a49cb46fdf
commit 707ec990e7
+1 -3
View File
@@ -5,7 +5,6 @@ declare(strict_types=1);
namespace Barryvdh\LaravelIdeHelper\Tests;
use Illuminate\Console\Command;
use Illuminate\Console\OutputStyle;
use Orchestra\Testbench\TestCase as BaseTestCase;
use Spatie\Snapshots\MatchesSnapshots;
use Symfony\Component\Console\Tester\CommandTester;
@@ -30,8 +29,7 @@ abstract class TestCase extends BaseTestCase
*/
protected function runCommand(Command $command, array $arguments = [], array $interactiveInput = []): CommandTester
{
// TODO: once Laravel 5.5 is dropped, call `$this->withoutMockingConsoleOutput()` instead
$this->app->offsetUnset(OutputStyle::class);
$this->withoutMockingConsoleOutput();
$command->setLaravel($this->app);