本文整理匯總了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();
}