File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/Category Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -88,16 +88,15 @@ public function test(
88
88
// Preconditions:
89
89
$ parentCategory ->persist ();
90
90
$ childCategory ->persist ();
91
- $ movedCategory = $ childCategory ;
91
+ $ resultCategory = $ childCategory ;
92
92
93
93
if (!empty ($ moveLevel )) {
94
94
for ($ nestingIterator = 1 ; $ nestingIterator < $ moveLevel ; $ nestingIterator ++) {
95
95
$ childCategory = $ childCategory ->getDataFieldConfig ('parent_id ' )['source ' ]->getParentCategory ();
96
96
}
97
+ $ resultCategory = $ this ->getMovedCategoryTree ($ resultCategory , $ parentCategory , $ childCategory );
97
98
}
98
99
99
- $ newCategory = $ this ->getMovedCategoryTree ($ movedCategory , $ parentCategory , $ childCategory );
100
-
101
100
// Steps:
102
101
$ this ->catalogCategoryIndex ->open ();
103
102
$ this ->catalogCategoryIndex ->getTreeCategories ()->expandAllCategories ();
@@ -108,7 +107,7 @@ public function test(
108
107
$ this ->catalogCategoryEdit ->getModalBlock ()->acceptWarning ();
109
108
110
109
return [
111
- 'category ' => $ newCategory ,
110
+ 'category ' => $ resultCategory ,
112
111
'parentCategory ' => $ parentCategory ,
113
112
'childCategory ' => $ childCategory ,
114
113
];
You can’t perform that action at this time.
0 commit comments