Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
bastien-phi committed Dec 30, 2024
1 parent 55d58f5 commit 8eeee70
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/Feature/AliasesCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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',
Expand Down

0 comments on commit 8eeee70

Please sign in to comment.