コード例 #1
0
 /**
  * Test create tax rule.
  *
  * @param TaxRule $taxRule
  * @return void
  */
 public function test(TaxRule $taxRule)
 {
     // Steps
     $this->taxRuleIndexPage->open();
     $this->taxRuleIndexPage->getPageActionsBlock()->addNew();
     $this->taxRuleNewPage->getTaxRuleForm()->fill($taxRule);
     $this->taxRuleNewPage->getFormPageActions()->save();
 }
コード例 #2
0
 /**
  * Delete all Tax Rules on backend.
  *
  * @return array
  */
 public function run()
 {
     $this->taxRuleIndexPage->open();
     $this->taxRuleIndexPage->getTaxRuleGrid()->resetFilter();
     while ($this->taxRuleIndexPage->getTaxRuleGrid()->isFirstRowVisible()) {
         $this->taxRuleIndexPage->getTaxRuleGrid()->openFirstRow();
         $this->taxRuleNewPage->getFormPageActions()->delete();
     }
 }