*/ public static function pages(): array { return [ 'home' => ['home', 'site/home'], 'about' => ['about', 'site/about'], 'services' => ['services', 'site/services'], 'clients' => ['clients', 'site/clients'], 'contact' => ['contact', 'site/contact'], ]; } #[DataProvider('pages')] public function test_public_page_renders_its_component(string $route, string $component) { $this->get(route($route)) ->assertOk() ->assertInertia(fn (Assert $page) => $page->component($component)); } }