diff --git a/.gitignore b/.gitignore index 83c9b9f..df1e984 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .idea +.phpunit.cache .phpunit.result.cache build composer.lock diff --git a/phpunit.xml.dist b/phpunit.xml.dist index e859be2..e952628 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,39 +1,23 @@ - - - - tests - - - - - ./src - - - - - - - - - - + + + + tests + + + + + + + + + + + + + + + ./src + + diff --git a/tests/TestCase.php b/tests/TestCase.php index 6bb273b..9ca4214 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -4,6 +4,7 @@ use BladeUI\Heroicons\BladeHeroiconsServiceProvider; use BladeUI\Icons\BladeIconsServiceProvider; +use Filament\Facades\Filament; use Filament\FilamentServiceProvider; use Livewire\LivewireServiceProvider; use Orchestra\Testbench\TestCase as Orchestra; @@ -15,6 +16,8 @@ class TestCase extends Orchestra protected function setUp(): void { parent::setUp(); + + Filament::setCurrentPanel('admin'); } protected function getPackageProviders($app)