/**
  * 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 Website
  *
  * @param Website $website
  * @param string $createBackup
  * @return void
  */
 public function test(Website $website, $createBackup)
 {
     //Preconditions
     $website->persist();
     $this->backupIndex->open()->getBackupGrid()->massaction([], 'Delete', true, 'Select All');
     //Steps
     $this->storeIndex->open();
     $this->storeIndex->getStoreGrid()->searchAndOpenWebsite($website);
     $this->editWebsite->getFormPageActions()->delete();
     $this->deleteWebsite->getDeleteWebsiteForm()->fillForm(['create_backup' => $createBackup]);
     $this->deleteWebsite->getFormPageActions()->delete();
 }
Exemplo n.º 3
0
 /**
  * Assert that one backup row is present in Backups grid
  *
  * @param BackupIndex $backupIndex
  * @return void
  */
 public function processAssert(BackupIndex $backupIndex)
 {
     \PHPUnit_Framework_Assert::assertTrue($backupIndex->open()->getBackupGrid()->isBackupRowVisible(), 'Backup is not present in grid.');
 }