/** * 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; }
/** * 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; }
/** * @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); }
/** * 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); } }