get('/photo/0_6.png') ->assertNotFound() ->assertHeader('X-Skinbase-Session', 'skipped'); $this->head('/photo/0_6.png') ->assertNotFound() ->assertHeader('X-Skinbase-Session', 'skipped'); }); it('starts session for /photo/* when a session cookie is already present', function (): void { $cookie = (string) config('session.cookie'); $this->withCookie($cookie, 'existing-session-cookie') ->get('/photo/0_6.png') ->assertNotFound() ->assertHeader('X-Skinbase-Session', 'started'); }); it('does not record presence for /photo/* requests', function (): void { $this->mock(OnlineVisitorRepository::class, function ($mock): void { $mock->shouldReceive('track')->never(); }); $this->get('/photo/0_6.png')->assertNotFound(); $this->head('/photo/0_6.png')->assertNotFound(); });