$response =
$this->downloadResponseGenerator->
getResponse($media,
$this->salesChannelContext
);
$response->headers->
set('date', null
);
$expectedResponse->headers->
set('date', null
);
static::
assertEquals($expectedResponse,
$response);
} public static function filesystemProvider(): \Generator
{ yield 'private / aws' =>
[true, 'external', 'external',
new RedirectResponse('foobar.txt'
)];
yield 'public / aws' =>
[false, 'external', 'external',
new RedirectResponse('foobar.txt'
)];
yield 'private / google' =>
[true, 'external', 'external',
new RedirectResponse('foobar.txt'
)];
yield 'public / google' =>
[false, 'external', 'external',
new RedirectResponse('foobar.txt'
)];
yield 'private / local / php' =>
[true, 'local', 'local', self::
getExpectedStreamResponse()];
yield 'private / local / x-sendfile' =>
[ true,
'local',
'local',
self::
getExpectedStreamResponse('X-Sendfile'
),
DownloadResponseGenerator::X_SENDFILE_DOWNLOAD_STRATEGRY,
];