/**
  * Delete Tax Rate Entity test.
  *
  * @param TaxRate $taxRate
  * @return void
  */
 public function testDeleteTaxRate(TaxRate $taxRate)
 {
     // Precondition
     $taxRate->persist();
     // Steps
     $filter = ['code' => $taxRate->getCode()];
     $this->taxRateIndex->open();
     $this->taxRateIndex->getTaxRateGrid()->searchAndOpen($filter);
     $this->taxRateNew->getFormPageActions()->delete();
 }
 /**
  * Update Tax Rate Entity test.
  *
  * @param TaxRate $initialTaxRate
  * @param TaxRate $taxRate
  * @return void
  */
 public function testUpdateTaxRate(TaxRate $initialTaxRate, TaxRate $taxRate)
 {
     // Precondition
     $initialTaxRate->persist();
     // Steps
     $filter = ['code' => $initialTaxRate->getCode()];
     $this->taxRateIndex->open();
     $this->taxRateIndex->getTaxRateGrid()->searchAndOpen($filter);
     $this->taxRateNew->getTaxRateForm()->fill($taxRate);
     $this->taxRateNew->getFormPageActions()->save();
 }