Skip to content

Commit

Permalink
Fixed file name using random name in generated content.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Mar 3, 2023
1 parent 6b9791f commit 5c889f7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function cs_generated_content_generated_content_create_file_file() {
foreach ($generation_types as $generation_type => $asset_types) {
foreach ($asset_types as $asset_type) {
for ($i = 0; $i < $total_files_count_per_type; $i++) {
$filename = sprintf('Generated %s %s file %s %s', $generation_type, $asset_type, $i + 1, $helper::randomName(4));
$filename = sprintf('Generated %s %s file %s %s', $generation_type, $asset_type, $i + 1, $helper::staticName(4));
$file = $helper->createFile($asset_type, [
'filename' => str_replace(' ', '_', $filename),
], $generation_type);
Expand Down

0 comments on commit 5c889f7

Please sign in to comment.