/** * 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(); } }