Fix: update TestableLivewire to use new Testable mixin

This commit is contained in:
Adam Weston
2023-08-14 09:05:16 -04:00
parent a1a0d04d0e
commit 6638bc7409
2 changed files with 4 additions and 4 deletions

View File

@@ -10,7 +10,7 @@ use Filament\Support\Facades\FilamentAsset;
use Filament\Support\Facades\FilamentIcon; use Filament\Support\Facades\FilamentIcon;
use Filament\Support\Icons\Icon; use Filament\Support\Icons\Icon;
use Illuminate\Filesystem\Filesystem; use Illuminate\Filesystem\Filesystem;
use Livewire\Testing\TestableLivewire; use Livewire\Features\SupportTesting\Testable;
use Spatie\LaravelPackageTools\Commands\InstallCommand; use Spatie\LaravelPackageTools\Commands\InstallCommand;
use Spatie\LaravelPackageTools\Package; use Spatie\LaravelPackageTools\Package;
use Spatie\LaravelPackageTools\PackageServiceProvider; use Spatie\LaravelPackageTools\PackageServiceProvider;
@@ -89,7 +89,7 @@ class SkeletonServiceProvider extends PackageServiceProvider
} }
// Testing // Testing
TestableLivewire::mixin(new TestsSkeleton()); Testable::mixin(new TestsSkeleton());
} }
protected function getAssetPackageName(): ?string protected function getAssetPackageName(): ?string

View File

@@ -2,10 +2,10 @@
namespace VendorName\Skeleton\Testing; namespace VendorName\Skeleton\Testing;
use Livewire\Testing\TestableLivewire; use Livewire\Features\SupportTesting\Testable;
/** /**
* @mixin TestableLivewire * @mixin Testable
*/ */
class TestsSkeleton class TestsSkeleton
{ {