From 3f8d2c6ccc764a2f92a325d73e171d5b02bfc3df Mon Sep 17 00:00:00 2001
From: Luis Tar Quince <luistar15@hotmail.com>
Date: Sat, 10 Oct 2020 11:18:59 -0500
Subject: [PATCH] Force path separator to / in ImageFixtures relative paths

---
 src/DataFixtures/ContentFixtures.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/DataFixtures/ContentFixtures.php b/src/DataFixtures/ContentFixtures.php
index f119bdec4..87954777f 100644
--- a/src/DataFixtures/ContentFixtures.php
+++ b/src/DataFixtures/ContentFixtures.php
@@ -275,7 +275,7 @@ private function getFieldTypeValue(DeepCollection $field, bool $singleton, Conte
             case 'image':
                 $randomImage = $this->imagesIndex->random();
                 $data = [
-                    'filename' => $randomImage->getRelativePathname(),
+                    'filename' => str_replace('\\', '/', $randomImage->getRelativePathname()),
                     'alt' => $this->faker->sentence(4, true),
                     'media' => '',
                 ];
@@ -284,7 +284,7 @@ private function getFieldTypeValue(DeepCollection $field, bool $singleton, Conte
             case 'file':
                 $randomImage = $this->imagesIndex->random();
                 $data = [
-                    'filename' => $randomImage->getRelativePathname(),
+                    'filename' => str_replace('\\', '/', $randomImage->getRelativePathname()),
                     'title' => $this->faker->sentence(4, true),
                     'media' => '',
                 ];