fix(vikon): use cURL streaming for ZIP downloads to avoid memory/timeout issues

This commit is contained in:
F4ilji
2026-07-05 13:26:10 +05:00
parent a18765aafa
commit b9ff255878
5 changed files with 76 additions and 15 deletions
@@ -90,9 +90,11 @@ class UpdatePartActionTest extends TestCase
$zipContent = file_get_contents($zipPath);
$http->shouldReceive('downloadWithToken')
$http->shouldReceive('downloadToFile')
->once()
->andReturn($zipContent);
->andReturnUsing(function ($endpoint, $token, $filePath) use ($zipContent) {
file_put_contents($filePath, $zipContent);
});
$fs->shouldReceive('validateFileTypes')
->once()