/**
  * Assert that displayed Store Group data on edit page equals passed from fixture.
  *
  * @param StoreIndex $storeIndex
  * @param EditGroup $editGroup
  * @param StoreGroup $storeGroup
  * @return void
  */
 public function processAssert(StoreIndex $storeIndex, EditGroup $editGroup, StoreGroup $storeGroup)
 {
     $storeIndex->open();
     $storeIndex->getStoreGrid()->openStoreGroup($storeGroup->getName());
     $formData = $editGroup->getEditFormStoreGroup()->getData();
     $fixtureData = $storeGroup->getData();
     $errors = $this->verifyData($fixtureData, $formData);
     \PHPUnit_Framework_Assert::assertEmpty($errors, $errors);
 }
 /**
  * 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();
     }
 }