get('/media/test.png?w=10&h=10'); $response->assertStatus(200); $this->assertEquals('image/png', $response->headers->get('Content-Type')); } public function test_it_handles_conversions(): void { $response = $this->get('/media/test.png?fm=webp'); $response->assertStatus(200); $this->assertEquals('image/webp', $response->headers->get('Content-Type')); } public function test_sw_file_routes_to_media_jit(): void { $html = sw_file('media/test.png', ['w' => 100]); $this->assertStringContainsString('/media/test.png', $html); $this->assertStringContainsString('w=100', $html); } }