예제 #1
0
 /**
  * @param TaxRateInterface $taxRate
  * @param string $element
  * @param string $taxRateElement
  */
 private function assertFieldValue(TaxRateInterface $taxRate, $element, $taxRateElement)
 {
     $this->indexPage->open();
     Assert::true($this->indexPage->isResourceOnPage(['code' => $taxRate->getCode(), $element => $taxRateElement]), sprintf('Tax rate %s %s has not been assigned properly.', $element, $taxRateElement));
 }
예제 #2
0
 /**
  * @Given /^the ("[^"]+" tax rate) has changed to ([^"]+)%$/
  */
 public function theTaxRateIsOfAmount(TaxRateInterface $taxRate, $amount)
 {
     $taxRate->setAmount($this->getAmountFromString($amount));
     $this->objectManager->flush();
 }