mirror of
https://github.com/filamentphp/plugin-skeleton.git
synced 2025-12-06 21:48:53 +08:00
Fix: update TestableLivewire to use new Testable mixin
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user