本文整理汇总了PHP中Magento\Catalog\Test\Page\Adminhtml\CatalogProductEdit::getFormAction方法的典型用法代码示例。如果您正苦于以下问题:PHP CatalogProductEdit::getFormAction方法的具体用法?PHP CatalogProductEdit::getFormAction怎么用?PHP CatalogProductEdit::getFormAction使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Magento\Catalog\Test\Page\Adminhtml\CatalogProductEdit
的用法示例。
在下文中一共展示了CatalogProductEdit::getFormAction方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testUpdateDownloadableProduct
/**
* Test update downloadable product
*
* @param CatalogProductDownloadable $product
* @param CatalogCategory $category
* @return void
*/
public function testUpdateDownloadableProduct(CatalogProductDownloadable $product, CatalogCategory $category)
{
$filter = ['sku' => $this->product->getSku()];
$this->catalogProductIndex->open()->getProductGrid()->searchAndOpen($filter);
$productBlockForm = $this->catalogProductEdit->getForm();
$productBlockForm->fillProduct($product, $category);
$this->catalogProductEdit->getFormAction()->save();
}
示例2: testUpdate
/**
* Run update product simple entity test
*
* @param CatalogProductSimple $product
* @return void
*/
public function testUpdate(CatalogProductSimple $product)
{
$filter = ['sku' => $this->product->getSku()];
$this->productGrid->open()->getProductGrid()->searchAndOpen($filter);
$productBlockForm = $this->editProductPage->getForm();
$productBlockForm->fillProduct($product);
$this->editProductPage->getFormAction()->save();
}
示例3: test
/**
* Run update product virtual entity test
*
* @param CatalogProductVirtual $product
* @return void
*/
public function test(CatalogProductVirtual $product)
{
// Steps
$this->productGrid->open();
$this->productGrid->getProductGrid()->searchAndOpen(['sku' => $this->product->getSku()]);
$this->editProductPage->getForm()->fill($product);
$this->editProductPage->getFormAction()->save();
}
示例4: test
/**
* Test update bundle product
*
* @param CatalogProductBundle $product
* @param CatalogProductBundle $originalProduct
* @return void
*/
public function test(CatalogProductBundle $product, CatalogProductBundle $originalProduct)
{
$originalProduct->persist();
$this->catalogProductIndex->open();
$filter = ['sku' => $originalProduct->getSku()];
$this->catalogProductIndex->getProductGrid()->searchAndOpen($filter);
$this->catalogProductEdit->getForm()->fill($product);
$this->catalogProductEdit->getFormAction()->save();
}
示例5: test
/**
* Test update grouped product
*
* @param CatalogProductGrouped $product
* @param CatalogProductGrouped $originalProduct
* @return void
*/
public function test(CatalogProductGrouped $product, CatalogProductGrouped $originalProduct)
{
// Precondition
$originalProduct->persist();
// Steps
$this->catalogProductIndex->open();
$this->catalogProductIndex->getProductGrid()->searchAndOpen(['sku' => $originalProduct->getSku()]);
$this->catalogProductEdit->getForm()->fill($product);
$this->catalogProductEdit->getFormAction()->save();
}