/** * Runs Update Store Entity test * * @param Store $storeInitial * @param Store $store * @return void */ public function test(Store $storeInitial, Store $store) { // Preconditions: $storeInitial->persist(); // Steps: $this->storeIndex->open(); $this->storeIndex->getStoreGrid()->searchAndOpenStore($storeInitial); $this->editStore->getStoreForm()->fill($store); $this->editStore->getFormPageActions()->save(); }
/** * 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(); }