Skip to content

Commit

Permalink
Update alias command test
Browse files Browse the repository at this point in the history
  • Loading branch information
bastien-phi committed Dec 6, 2023
1 parent ba677f3 commit 9628449
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
16 changes: 2 additions & 14 deletions tests/Feature/AliasesCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,8 @@ public function theCommandIsSuccessful(): void
if (config('app.aliases.Redis') === null) {
AliasLoader::getInstance(['RedisManager' => \Illuminate\Support\Facades\Redis::class]);
}
if (config('app.aliases.Date') === null) {
AliasLoader::getInstance(['Date' => \Illuminate\Support\Facades\Date::class]);
}
if (config('app.aliases.Js') === null) {
AliasLoader::getInstance(['Js' => \Illuminate\Support\Js::class]);
}
if (config('app.aliases.Process') === null) {
AliasLoader::getInstance(['Process' => \Illuminate\Support\Facades\Process::class]);
}
if (config('app.aliases.RateLimiter') === null) {
AliasLoader::getInstance(['RateLimiter' => \Illuminate\Support\Facades\RateLimiter::class]);
}
if (config('app.aliases.Vite') === null) {
AliasLoader::getInstance(['Vite' => \Illuminate\Support\Facades\Vite::class]);
if (config('app.aliases.Number') === null) {
AliasLoader::getInstance(['Number' => \Illuminate\Support\Number::class]);
}

config([
Expand Down
4 changes: 4 additions & 0 deletions tests/expected/_ide_aliases.stub
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ namespace
{
}

class Number extends \Illuminate\Support\Number
{
}

class Password extends \Illuminate\Support\Facades\Password
{
}
Expand Down

0 comments on commit 9628449

Please sign in to comment.