Skip to content

Commit 104e587

Browse files
committed
MAGETWO-54026: Automated move store to another group within a website.
1 parent 7bab67e commit 104e587

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

dev/tests/functional/tests/app/Magento/Backend/Test/Block/System/Store/Edit/Form/StoreForm.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ public function isStoreVisible($name)
4848
*/
4949
public function selectStore($name)
5050
{
51-
return $this->_rootElement->find($this->storeGroupId, Locator::SELECTOR_XPATH, 'optgroupselect')->setValue($name);
51+
return $this->_rootElement->find($this->storeGroupId, Locator::SELECTOR_XPATH, 'optgroupselect')
52+
->setValue($name);
5253
}
5354
}

dev/tests/functional/tests/app/Magento/Store/Test/TestCase/MoveStoreToOtherGroupSameWebsiteTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,10 @@ public function test(FixtureFactory $fixtureFactory, Store $storeInitialA, Store
8585
'name' => $storeInitialB->getName(),
8686
'code' => $storeInitialB->getCode(),
8787
'is_active' => $storeInitialB->getIsActive(),
88-
'group_id' => ['storeGroup' => $storeInitialA->getDataFieldConfig('group_id')['source']->getStoreGroup()],
89-
]
88+
'group_id' => [
89+
'storeGroup' => $storeInitialA->getDataFieldConfig('group_id')['source']->getStoreGroup()
90+
],
91+
],
9092
]
9193
);
9294

0 commit comments

Comments
 (0)