Skip to content

Commit 8dc61f1

Browse files
MTO-136: [Test] Captcha on Contact Us form
- Restore selector.
1 parent cc4f8ac commit 8dc61f1

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/Category/MoveCategoryEntityTest.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,16 +88,15 @@ public function test(
8888
// Preconditions:
8989
$parentCategory->persist();
9090
$childCategory->persist();
91-
$movedCategory = $childCategory;
91+
$resultCategory = $childCategory;
9292

9393
if (!empty($moveLevel)) {
9494
for ($nestingIterator = 1; $nestingIterator < $moveLevel; $nestingIterator++) {
9595
$childCategory = $childCategory->getDataFieldConfig('parent_id')['source']->getParentCategory();
9696
}
97+
$resultCategory = $this->getMovedCategoryTree($resultCategory, $parentCategory, $childCategory);
9798
}
9899

99-
$newCategory = $this->getMovedCategoryTree($movedCategory, $parentCategory, $childCategory);
100-
101100
// Steps:
102101
$this->catalogCategoryIndex->open();
103102
$this->catalogCategoryIndex->getTreeCategories()->expandAllCategories();
@@ -108,7 +107,7 @@ public function test(
108107
$this->catalogCategoryEdit->getModalBlock()->acceptWarning();
109108

110109
return [
111-
'category' => $newCategory,
110+
'category' => $resultCategory,
112111
'parentCategory' => $parentCategory,
113112
'childCategory' => $childCategory,
114113
];

0 commit comments

Comments
 (0)