From 707ec990e7657d4a75d793895b996b3d7b7543e8 Mon Sep 17 00:00:00 2001 From: Markus Podar Date: Sat, 29 Aug 2020 08:12:11 +0200 Subject: [PATCH] tests: remove L5.5 workaround (#1023) --- tests/TestCase.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/TestCase.php b/tests/TestCase.php index 4cf87a9..e9e35e3 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -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);