Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bastien-phi committed Jun 5, 2024
1 parent 0edd0e5 commit 487197d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 0 additions & 5 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,6 @@ parameters:
count: 1
path: src/Domain/Meta/Actions/ResolveContainerBindings.php

-
message: "#^Unable to resolve the template type TMapValue in call to method Illuminate\\\\Support\\\\Collection\\<string,object\\>\\:\\:map\\(\\)$#"
count: 1
path: src/Domain/Meta/Actions/ResolveContainerBindings.php

-
message: "#^Parameter \\#1 \\$fqcn of class Soyhuce\\\\NextIdeHelper\\\\Domain\\\\Models\\\\Entities\\\\Model constructor expects class\\-string\\<Illuminate\\\\Database\\\\Eloquent\\\\Model\\>, class\\-string given\\.$#"
count: 1
Expand Down
3 changes: 3 additions & 0 deletions tests/Feature/AliasesCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ public function theCommandIsSuccessful(): void
if (config('app.aliases.Schedule') === null) {
AliasLoader::getInstance(['Schedule' => \Illuminate\Support\Facades\Schedule::class]);
}
if (config('app.aliases.Context') === null) {
AliasLoader::getInstance(['Context' => \Illuminate\Support\Facades\Context::class]);
}

config([
'next-ide-helper.aliases' => [
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 @@ -38,6 +38,10 @@ namespace
{
}

class Context extends \Illuminate\Support\Facades\Context
{
}

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

0 comments on commit 487197d

Please sign in to comment.