#[Package('buyers-experience')]
class FileFetcherTest extends TestCase
{ final public const TEST_IMAGE = __DIR__ . '/../../../../../../src/Core/Content/Test/Media/fixtures/shopware-logo.png';
private FileFetcher
$fileFetcher;
private bool
$mediaDirCreated = false;
protected function setUp(): void
{ $this->fileFetcher =
new FileFetcher(new FileUrlValidator());
$projectDir =
(new TestBootstrapper())->
getProjectDir();
if (!\
is_dir($projectDir . '/public/media'
)) { mkdir($projectDir . '/public/media'
);
$this->mediaDirCreated = true;
} \
copy(self::TEST_IMAGE,
$projectDir . '/public/media/shopware-logo.png'
);
} protected function tearDown(): void
{