9 use Magento\Backend\Test\Page\Adminhtml\EditStore;
10 use Magento\Backend\Test\Page\Adminhtml\StoreDelete;
11 use Magento\Backend\Test\Page\Adminhtml\StoreIndex;
12 use Magento\Backup\Test\Page\Adminhtml\BackupIndex;
14 use Magento\Mtf\TestCase\Injectable;
100 public function test(Store
$store, $createBackup)
105 $enableBackupsStep = $this->objectManager->create(
106 SetupConfigurationStep::class,
107 [
'configData' =>
'enable_backups_functionality']
109 $enableBackupsStep->run();
110 $this->backupIndex->open()
112 ->massaction([],
'Delete',
true,
'Select All');
115 $this->storeIndex->open();
116 $this->storeIndex->getStoreGrid()->searchAndOpenStore(
$store);
117 $this->editStore->getFormPageActions()->delete();
118 $this->storeDelete->getStoreForm()->fillForm([
'create_backup' => $createBackup]);
119 $this->storeDelete->getFormPageActions()->delete();
120 $this->storeDelete->getModalBlock()->acceptAlert();
__inject(BackupIndex $backupIndex, StoreIndex $storeIndex, EditStore $editStore, StoreDelete $storeDelete)