Skip to content

Commit c9e3847

Browse files
committed
MAGNIMEX-SPRINT2 - configurable fixture change
1 parent 71a02bd commit c9e3847

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setup/src/Magento/Setup/Fixtures/ConfigurableProductsFixture.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ public function execute()
624624
$pathSize = count($structure);
625625
if ($pathSize > 1) {
626626
$path = [];
627-
for ($i = 0; $i < $pathSize; $i++) {
627+
for ($i = 1; $i < $pathSize; $i++) {
628628
$path[] = $category->load($structure[$i])->getName();
629629
}
630630
array_shift($path);
@@ -645,7 +645,7 @@ public function execute()
645645
return $result[$index % count($result)][0];
646646
};
647647
$productCategory = function ($index) use ($result) {
648-
return $result[$index % count($result)][1];
648+
return $result[$index % count($result)][2] . '/' . $result[$index % count($result)][1];
649649
};
650650

651651
/**

0 commit comments

Comments
 (0)