コード例 #1
0
 /**
  * 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();
 }
コード例 #2
0
 /**
  * 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();
 }
コード例 #3
0
ファイル: AssertBackupInGrid.php プロジェクト: aiesh/magento2
 /**
  * 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.');
 }