From 7b02bad00acfec5b6688dcb46d8f5b07f1afe434 Mon Sep 17 00:00:00 2001 From: Kath Young Date: Tue, 1 Oct 2024 17:28:24 +0930 Subject: [PATCH] Test role --- tests/Feature/PageTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/Feature/PageTest.php b/tests/Feature/PageTest.php index cba9fe85..2e5eece9 100644 --- a/tests/Feature/PageTest.php +++ b/tests/Feature/PageTest.php @@ -7,6 +7,7 @@ use Illuminate\Support\Facades\Schema; use Illuminate\Support\Str; use Livewire\Livewire; +use Portable\FilaCms\Database\Seeders\RoleAndPermissionSeeder; use Portable\FilaCms\Filament\Actions\CloneAction; use Portable\FilaCms\Filament\Resources\PageResource\Pages\ListPages; use Portable\FilaCms\Models\Author; @@ -24,6 +25,7 @@ class PageTest extends TestCase protected function setUp(): void { parent::setUp(); + $this->artisan('db:seed', ['--class' => RoleAndPermissionSeeder::class]); $this->userModel = config('auth.providers.users.model'); $user = $this->userModel::create([ 'name' => 'Jeremy Layson',