/** * Delete store groups. * * @return void */ public function run() { foreach ($this->storeGroups as $storeGroup) { /** @var StoreGroup $storeGroup */ $this->storeIndex->getStoreGrid()->openStoreGroupByName($storeGroup->getName()); $this->editStore->getFormPageActions()->delete(); $this->deleteStore->getFormPageActions()->delete(); } }
/** * Delete Website after test variation. * * @return void */ public function tearDown() { // Delete Website if ($this->website->hasData('website_id')) { $this->storeIndex->open(); $storeGrid = $this->storeIndex->getStoreGrid(); $storeGrid->openWebsite($this->website->getName()); $this->editStore->getFormPageActions()->delete(); $this->deleteStore->getFormPageActions()->delete(); } }
/** * Delete store. * * @return void */ public function tearDown() { $this->storeIndex->open(); if ($this->storeGroup->getWebsiteId() !== 'Main Website') { $this->storeIndex->getStoreGrid()->openWebsite($this->storeGroup->getWebsiteId()); $this->editStore->getFormPageActions()->delete(); $this->deleteStore->getFormPageActions()->delete(); } else { $this->storeIndex->getStoreGrid()->openStoreGroupByName($this->storeGroup->getName()); $this->editStore->getFormPageActions()->delete(); $this->deleteStore->getFormPageActions()->delete(); } }
/** * Delete store. * * @return void */ public function tearDown() { $this->objectManager->create('Mage\\Core\\Test\\TestStep\\SetupConfigurationStep', ['configData' => 'store_view_local', 'rollback' => true])->run(); $this->storeIndex->open(); if ($this->store->getGroupId() === 'Main Website/Main Website Store') { $this->storeIndex->getStoreGrid()->openStore($this->store); $this->editStore->getFormPageActions()->delete(); $this->deleteStore->getFormPageActions()->delete(); } else { $this->storeIndex->getStoreGrid()->openStoreGroup(explode('/', $this->store->getGroupId())[1]); $this->editGroup->getFormPageActions()->delete(); $this->deleteGroup->getFormPageActions()->delete(); } }
/** * Delete store. * * @return void */ public function tearDown() { if (!$this->cms instanceof CmsPage) { return; } $stores = $this->cms->getStoreId(); if ($stores) { $stores = $this->cms->getDataFieldConfig('store_id')['source']->getStore(); foreach ($stores as $store) { $this->storeIndex->open(); $this->storeIndex->getStoreGrid()->openStore($store); $this->editStore->getFormPageActions()->delete(); $this->deleteStore->getFormPageActions()->delete(); } } }
/** * Delete store. * * @return void */ public function tearDown() { if ($this->urlRewrite !== null && $this->urlRewrite->hasData('store_id')) { $store = $this->urlRewrite->getDataFieldConfig('store_id')['source']->getStore(); if ($store->getName() !== 'Default Store View') { $this->storeIndex->open(); $this->storeIndex->getStoreGrid()->openStore($store); $this->editStore->getFormPageActions()->delete(); $this->deleteStore->getFormPageActions()->delete(); } $this->urlRewrite = null; } }