get('/contacts'); $response->assertStatus(200); } /** * Test an individual contact page with default profile image. * * @test */ public function contactPageShouldFallbackToDefaultProfilePic(): void { $response = $this->get('/contacts/tantek'); $response->assertViewHas('image', '/assets/profile-images/default-image'); } /** * Test an individual contact page with a specific profile image. * * @test */ public function contactPageShouldUseSpecificProfilePicIfPresent(): void { $response = $this->get('/contacts/aaron'); $response->assertViewHas('image', '/assets/profile-images/aaronparecki.com/image'); } /** @test */ public function unknownContactReturnsNotFoundResponse(): void { $response = $this->get('/contacts/unknown'); $response->assertNotFound(); } }