Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
CurrencySymbolForm.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\Mtf\Block\Form;
10 use Magento\Mtf\Client\Locator;
11 use Magento\Mtf\Fixture\FixtureInterface;
12 use Magento\Mtf\Client\Element\SimpleElement;
13 
18 class CurrencySymbolForm extends Form
19 {
25  protected $currencyRow = '//div[input[@id="custom_currency_symbol%s"]]';
26 
34  public function fill(FixtureInterface $fixture, SimpleElement $element = null)
35  {
36  $element = $this->_rootElement->find(sprintf($this->currencyRow, $fixture->getCode()), Locator::SELECTOR_XPATH);
37  $data = $fixture->getData();
38  unset($data['code']);
39  $mapping = $this->dataMapping($data);
40  $this->_fill($mapping, $element);
41  return $this;
42  }
43 }
fill(FixtureInterface $fixture, SimpleElement $element=null)
$element
Definition: element.phtml:12