From 8eeee709183ffe0765cce9ee0bef18abcb736c55 Mon Sep 17 00:00:00 2001 From: Bastien Philippe Date: Mon, 30 Dec 2024 17:11:47 +0100 Subject: [PATCH] Fix test --- tests/Feature/AliasesCommandTest.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/Feature/AliasesCommandTest.php b/tests/Feature/AliasesCommandTest.php index 9c54c79..9a7d57e 100644 --- a/tests/Feature/AliasesCommandTest.php +++ b/tests/Feature/AliasesCommandTest.php @@ -2,6 +2,7 @@ namespace Soyhuce\NextIdeHelper\Tests\Feature; +use Illuminate\Foundation\AliasLoader; use Illuminate\Support\Facades\File; use Soyhuce\NextIdeHelper\Tests\ResetsFixtures; use Soyhuce\NextIdeHelper\Tests\TestCase; @@ -18,6 +19,13 @@ class AliasesCommandTest extends TestCase */ public function theCommandIsSuccessful(): void { + if (config('app.aliases.Concurrency') === null) { + AliasLoader::getInstance(['Concurrency' => \Illuminate\Support\Facades\Concurrency::class]); + } + if (config('app.aliases.Uri') === null) { + AliasLoader::getInstance(['Number' => \Illuminate\Support\Uri::class]); + } + config([ 'next-ide-helper.aliases' => [ 'file_name' => $this->fixturePath() . '/_ide_aliases.php',