Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
6 changes: 6 additions & 0 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 0 additions & 13 deletions src/Testing/TestsSkeleton.php

This file was deleted.

3 changes: 3 additions & 0 deletions tests/Feature/MenuLoginsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace DutchCodingCompany\FilamentDeveloperLogins\Tests\Feature;

use DutchCodingCompany\FilamentDeveloperLogins\Exceptions\ImplementationException;
use DutchCodingCompany\FilamentDeveloperLogins\FilamentDeveloperLoginsPlugin;
use DutchCodingCompany\FilamentDeveloperLogins\Livewire\MenuLogins;
use DutchCodingCompany\FilamentDeveloperLogins\Tests\Fixtures\TestUser;
Expand Down Expand Up @@ -91,6 +92,8 @@ public function test_component_is_only_rendered_in_panel_with_plugin(): void
->assertSuccessful()
->assertSeeLivewire(MenuLogins::class);

$this->expectException(ImplementationException::class);

$this->actingAs($user)
->get(Dashboard::getUrl(panel: $this->panelName.'-other'))
->assertSuccessful()
Expand Down