get(route('company-search')); $response->assertRedirect(route('login')); }); test('authenticated users can visit the company search page', function () { $user = User::factory()->create(); $this->actingAs($user); $response = $this->get(route('company-search')); $response->assertSuccessful(); $response->assertSee('Unternehmensauskunft'); });