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