コード例 #1
0
ファイル: Form.php プロジェクト: aiesh/magento2
 /**
  * Fill the root form
  *
  * @param FixtureInterface $fixture
  * @param Element $element
  * @return $this|void
  *
  * @SuppressWarnings(PHPMD.UnusedFormalParameter)
  */
 public function fill(FixtureInterface $fixture, Element $element = null)
 {
     /** @var TaxRule $fixture */
     $this->addNewTaxRates($fixture);
     $this->openAdditionalSettings();
     if ($fixture->hasData('tax_customer_class')) {
         $taxCustomerBlock = $this->_rootElement->find($this->taxCustomerBlock, Locator::SELECTOR_CSS, 'multiselectlist');
         $this->addNewTaxClass($fixture->getTaxCustomerClass(), $taxCustomerBlock);
     }
     if ($fixture->hasData('tax_product_class')) {
         $taxProductBlock = $this->_rootElement->find($this->taxProductBlock, Locator::SELECTOR_CSS, 'multiselectlist');
         $this->addNewTaxClass($fixture->getTaxProductClass(), $taxProductBlock);
     }
     parent::fill($fixture);
 }
コード例 #2
0
ファイル: Form.php プロジェクト: aiesh/magento2
 /**
  * Fill the review form
  *
  * @param FixtureInterface $review
  * @param Element|null $element
  * @return $this
  */
 public function fill(FixtureInterface $review, Element $element = null)
 {
     if ($review instanceof ReviewInjectable) {
         $this->fillRatings($review);
     }
     parent::fill($review, $element);
 }