Skip to content

Commit

Permalink
Force path separator to / in ImageFixtures relative paths
Browse files Browse the repository at this point in the history
luistar15 committed Oct 10, 2020
1 parent 333f949 commit 3f8d2c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DataFixtures/ContentFixtures.php
Original file line number Diff line number Diff line change
@@ -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' => '',
];

0 comments on commit 3f8d2c6

Please sign in to comment.