#591 - server-providers

This commit is contained in:
Saeed Vaziry
2025-05-18 21:12:06 +02:00
parent 8b4d156afa
commit 1ed5d7362b
18 changed files with 349 additions and 93 deletions

View File

@ -6,7 +6,7 @@
use App\Models\Project;
use App\Models\User;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Inertia\Testing\AssertableInertia as Assert;
use Inertia\Testing\AssertableInertia;
use Tests\TestCase;
class UserTest extends TestCase
@ -41,7 +41,7 @@ public function test_see_users_list(): void
$this->get(route('users'))
->assertSuccessful()
->assertInertia(fn (Assert $page) => $page->component('users/index'));
->assertInertia(fn (AssertableInertia $page) => $page->component('users/index'));
}
public function test_must_be_admin_to_see_users_list(): void