'CC-MAIN-TEST', 'domain' => "example{$i}.com", 'url' => "https://example{$i}.com/", ]); } } public function test_guest_sees_only_a_preview_of_sites(): void { $this->seedSites(8); $response = $this->get(route('sites.index')); $response->assertOk(); $response->assertSeeText('Showing a preview (5 of 8 results)'); } public function test_authenticated_user_sees_all_sites(): void { $this->seedSites(8); $response = $this->actingAs(User::factory()->create())->get(route('sites.index')); $response->assertOk(); $response->assertDontSeeText('Showing a preview'); } }