/**
  * Run Delete Store Entity test
  *
  * @param Store $store
  * @param string $createBackup
  * @return void
  */
 public function test(Store $store, $createBackup)
 {
     // Preconditions:
     $store->persist();
     $this->backupIndex->open()->getBackupGrid()->massaction([], 'Delete', true, 'Select All');
     // Steps:
     $this->storeIndex->open();
     $this->storeIndex->getStoreGrid()->searchAndOpenStore($store);
     $this->editStore->getFormPageActions()->delete();
     $this->storeDelete->getStoreForm()->fillForm(['create_backup' => $createBackup]);
     $this->storeDelete->getFormPageFooterActions()->delete();
 }
 /**
  * Delete Store after test.
  *
  * @return void|null
  */
 public function tearDown()
 {
     if (in_array($this->storeName, $this->skippedStores)) {
         return;
     }
     $storeName = explode("/", $this->storeName);
     $filter['store_title'] = end($storeName);
     $this->storeIndex->open();
     $this->storeIndex->getStoreGrid()->searchAndOpen($filter);
     $this->storeNew->getFormPageActions()->delete();
     $this->storeDelete->getStoreForm()->fillForm(['create_backup' => 'No']);
     $this->storeDelete->getFormPageActions()->delete();
 }