当前位置: 首页>>代码示例>>PHP>>正文


PHP InjectableFixture::getDataConfig方法代码示例

本文整理汇总了PHP中Magento\Mtf\Fixture\InjectableFixture::getDataConfig方法的典型用法代码示例。如果您正苦于以下问题:PHP InjectableFixture::getDataConfig方法的具体用法?PHP InjectableFixture::getDataConfig怎么用?PHP InjectableFixture::getDataConfig使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Magento\Mtf\Fixture\InjectableFixture的用法示例。


在下文中一共展示了InjectableFixture::getDataConfig方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: processAssert

 /**
  * Assert that duplicated product can be found in grid by type, template, status and stock status.
  *
  * @param InjectableFixture $product
  * @param CatalogProduct $productGrid
  * @return void
  */
 public function processAssert(InjectableFixture $product, CatalogProduct $productGrid)
 {
     $config = $product->getDataConfig();
     $filter = ['name' => $product->getName(), 'visibility' => $product->getVisibility(), 'status' => 'Disabled', 'type' => ucfirst($config['create_url_params']['type']) . ' Product', 'price_to' => number_format($product->getPrice(), 2)];
     $productGrid->open()->getProductGrid()->search($filter);
     \PHPUnit_Framework_Assert::assertTrue($productGrid->getProductGrid()->isRowVisible($filter, false, false), 'Product duplicate is absent in Products grid.');
 }
开发者ID:MikeTayC,项目名称:magento.dev,代码行数:14,代码来源:AssertProductDuplicatedInGrid.php

示例2: prepareData

 /**
  * Prepare data for creating product request.
  *
  * @return void
  */
 protected function prepareData()
 {
     $config = $this->fixture->getDataConfig();
     $this->fields['product']['type_id'] = $config['type_id'];
     $this->prepareFpt();
     $this->prepareAdvancedInventory();
     $this->prepareTierPrice();
     $this->prepareCustomOptions();
 }
开发者ID:koliaGI,项目名称:magento2,代码行数:14,代码来源:Webapi.php

示例3: getStockAvailability

 /**
  * Get text of Stock Availability control.
  *
  * @param InjectableFixture $product
  * @return string
  */
 public function getStockAvailability(InjectableFixture $product)
 {
     $dataConfig = $product->getDataConfig();
     $typeId = isset($dataConfig['type_id']) ? $dataConfig['type_id'] : null;
     return $this->hasRender($typeId) ? $this->callRender($typeId, 'get' . ucfirst($typeId) . 'StockAvailability') : strtolower($this->_rootElement->find($this->stockAvailability)->getText());
 }
开发者ID:hientruong90,项目名称:ee_14_installer,代码行数:12,代码来源:View.php

示例4: prepareConfig

 /**
  * Prepare config data.
  *
  * @param InjectableFixture $product
  * @return array
  */
 protected function prepareConfig(InjectableFixture $product)
 {
     $config = $product->getDataConfig();
     if ($product->hasData('attribute_set_id')) {
         $config['create_url_params']['set'] = $product->getDataFieldConfig('attribute_set_id')['source']->getAttributeSet()->getAttributeSetId();
     }
     return $config;
 }
开发者ID:cewolf2002,项目名称:magento,代码行数:14,代码来源:Curl.php

示例5: getProductType

 /**
  * Get product type
  *
  * @return string
  */
 protected function getProductType()
 {
     $config = $this->product->getDataConfig();
     return ucfirst($config['type_id']) . ' Product';
 }
开发者ID:chucky515,项目名称:Magento-CE-Mirror,代码行数:10,代码来源:AssertProductInGrid.php

示例6: getCartItem

 /**
  * Get cart item block.
  *
  * @param InjectableFixture $product
  * @return CartItem
  */
 public function getCartItem(InjectableFixture $product)
 {
     $dataConfig = $product->getDataConfig();
     $typeId = isset($dataConfig['type_id']) ? $dataConfig['type_id'] : null;
     $cartItem = null;
     if ($this->hasRender($typeId)) {
         $cartItem = $this->callRender($typeId, 'getCartItem', ['product' => $product]);
     } else {
         $cartItemBlock = $this->_rootElement->find(sprintf($this->cartItemByProductName, $product->getName()), Locator::SELECTOR_XPATH);
         $cartItem = $this->blockFactory->create($this->cartItemClass, ['element' => $cartItemBlock]);
     }
     return $cartItem;
 }
开发者ID:hientruong90,项目名称:ee_14_installer,代码行数:19,代码来源:Cart.php

示例7: getProductType

 /**
  * Get product type.
  *
  * @param InjectableFixture $product
  * @return string|null
  */
 protected function getProductType(InjectableFixture $product)
 {
     $dataConfig = $product->getDataConfig();
     return isset($dataConfig['type_id']) ? $dataConfig['type_id'] : null;
 }
开发者ID:hientruong90,项目名称:ee_14_installer,代码行数:11,代码来源:ProductForm.php


注:本文中的Magento\Mtf\Fixture\InjectableFixture::getDataConfig方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。