Exemplo n.º 1
0
 /**
  * Create data array for filling tabs.
  * Skip Advanced Price tab
  *
  * @param InjectableFixture $fixture
  * @return array
  */
 protected function getFixtureFieldsByContainers(InjectableFixture $fixture)
 {
     $sections = parent::getFixtureFieldsByContainers($fixture);
     if (isset($sections['advanced-pricing'])) {
         unset($sections['advanced-pricing']);
     }
     return $sections;
 }
Exemplo n.º 2
0
 /**
  * Create data array for filling tabs.
  * Skip Advanced Price tab
  *
  * @param FixtureInterface $fixture
  * @return array
  */
 protected function getFieldsByTabs(FixtureInterface $fixture)
 {
     $tabs = parent::getFieldsByTabs($fixture);
     if (isset($tabs['advanced-pricing'])) {
         unset($tabs['advanced-pricing']);
     }
     return $tabs;
 }
Exemplo n.º 3
0
 /**
  * @param Element $element
  * @param Mapper $mapper
  * @param XmlConverter $xmlConverter
  * @param BlockFactory $blockFactory
  * @param Browser $browser
  */
 public function __construct(Element $element, Mapper $mapper, XmlConverter $xmlConverter, BlockFactory $blockFactory, Browser $browser)
 {
     $this->browser = $browser;
     parent::__construct($element, $mapper, $blockFactory, $xmlConverter);
 }
Exemplo n.º 4
0
 /**
  * Save product
  *
  * @param FixtureInterface $fixture
  * @return \Magento\Backend\Test\Block\Widget\Form|void
  */
 public function save(FixtureInterface $fixture = null)
 {
     parent::save($fixture);
     if ($this->getAffectedAttributeSetBlock()->isVisible()) {
         $this->getAffectedAttributeSetBlock()->chooseAttributeSet($fixture);
     }
 }