9 use Magento\Backend\Test\Page\Adminhtml\DeleteWebsite;
10 use Magento\Backend\Test\Page\Adminhtml\EditWebsite;
11 use Magento\Backend\Test\Page\Adminhtml\StoreIndex;
12 use Magento\Backup\Test\Page\Adminhtml\BackupIndex;
13 use Magento\Store\Test\Fixture\Website;
14 use Magento\Mtf\TestCase\Injectable;
102 public function test(Website
$website, $createBackup)
107 $enableBackupsStep = $this->objectManager->create(
108 SetupConfigurationStep::class,
109 [
'configData' =>
'enable_backups_functionality']
111 $enableBackupsStep->run();
112 $this->backupIndex->open()
114 ->massaction([],
'Delete',
true,
'Select All');
117 $this->storeIndex->open();
118 $this->storeIndex->getStoreGrid()->searchAndOpenWebsite(
$website);
119 $this->editWebsite->getFormPageActions()->delete();
120 $this->deleteWebsite->getDeleteWebsiteForm()->fillForm([
'create_backup' => $createBackup]);
121 $this->deleteWebsite->getFormPageActions()->delete();
__inject(StoreIndex $storeIndex, EditWebsite $editWebsite, DeleteWebsite $deleteWebsite, BackupIndex $backupIndex)