mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-21 03:23:08 +00:00
tests: remove L5.5 workaround (#1023)
This commit is contained in:
+1
-3
@@ -5,7 +5,6 @@ declare(strict_types=1);
|
|||||||
namespace Barryvdh\LaravelIdeHelper\Tests;
|
namespace Barryvdh\LaravelIdeHelper\Tests;
|
||||||
|
|
||||||
use Illuminate\Console\Command;
|
use Illuminate\Console\Command;
|
||||||
use Illuminate\Console\OutputStyle;
|
|
||||||
use Orchestra\Testbench\TestCase as BaseTestCase;
|
use Orchestra\Testbench\TestCase as BaseTestCase;
|
||||||
use Spatie\Snapshots\MatchesSnapshots;
|
use Spatie\Snapshots\MatchesSnapshots;
|
||||||
use Symfony\Component\Console\Tester\CommandTester;
|
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
|
protected function runCommand(Command $command, array $arguments = [], array $interactiveInput = []): CommandTester
|
||||||
{
|
{
|
||||||
// TODO: once Laravel 5.5 is dropped, call `$this->withoutMockingConsoleOutput()` instead
|
$this->withoutMockingConsoleOutput();
|
||||||
$this->app->offsetUnset(OutputStyle::class);
|
|
||||||
|
|
||||||
$command->setLaravel($this->app);
|
$command->setLaravel($this->app);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user