diff --git a/composer.json b/composer.json index 3508371..a9153c3 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,7 @@ ], "require": { "php": "^8.2", - "filament/filament": "^4.0", + "filament/filament": "^4.0|^5.0", "spatie/laravel-package-tools": "^1.15.0" }, "require-dev": { diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 6d0ad8d..ceaf611 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -30,6 +30,12 @@ parameters: count: 2 path: tests/Feature/MenuLoginsTest.php + - + message: '#^Unable to resolve the template type TComponent in call to method Livewire\\LivewireManager\:\:test\(\)$#' + identifier: argument.templateType + count: 3 + path: tests/Feature/MenuLoginsTest.php + - message: '#^Access to an undefined property DutchCodingCompany\\FilamentDeveloperLogins\\Tests\\Fixtures\\TestUser\:\:\$is_admin\.$#' identifier: property.notFound diff --git a/src/Testing/TestsSkeleton.php b/src/Testing/TestsSkeleton.php deleted file mode 100644 index 0e33b51..0000000 --- a/src/Testing/TestsSkeleton.php +++ /dev/null @@ -1,13 +0,0 @@ -assertSuccessful() ->assertSeeLivewire(MenuLogins::class); + $this->expectException(ImplementationException::class); + $this->actingAs($user) ->get(Dashboard::getUrl(panel: $this->panelName.'-other')) ->assertSuccessful()