9 use Magento\Backend\Test\Page\Adminhtml\EditStore;
10 use Magento\Backend\Test\Page\Adminhtml\StoreIndex;
12 use Magento\Mtf\TestCase\Injectable;
13 use Magento\Mtf\Fixture\FixtureFactory;
79 public function test(FixtureFactory $fixtureFactory, Store $storeInitialA, Store $storeInitialB)
82 $store = $fixtureFactory->createByCode(
86 'name' => $storeInitialB->getName(),
87 'code' => $storeInitialB->getCode(),
88 'is_active' => $storeInitialB->getIsActive(),
90 'storeGroup' => $storeInitialA->getDataFieldConfig(
'group_id')[
'source']->getStoreGroup()
97 $storeInitialA->persist();
98 $storeInitialB->persist();
101 $this->storeIndex->open();
102 $this->storeIndex->getStoreGrid()->searchAndOpenStore($storeInitialB);
103 $this->editStore->getStoreForm()->selectStore($storeInitialA->getGroupId());
104 $this->editStore->getFormPageActions()->save();
105 $this->editStore->getModalBlock()->acceptAlert();
107 return [
'store' =>
$store];
test(FixtureFactory $fixtureFactory, Store $storeInitialA, Store $storeInitialB)
__inject(StoreIndex $storeIndex, EditStore $editStore)