get(route('scraper.index'))->assertRedirect(route('login')); } public function test_scraper_index_can_be_rendered(): void { $user = User::factory()->create(); $this->actingAs($user) ->get(route('scraper.index')) ->assertOk(); } public function test_scraper_search_requires_authentication(): void { $this->getJson(route('scraper.search', ['query' => 'mario'])) ->assertRedirect(); } public function test_scraper_apply_requires_authentication(): void { $this->post(route('scraper.apply', 'some-game')) ->assertRedirect(route('login')); } }