Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
magento2-base
dev
tests
functional
tests
app
Magento
Catalog
Test
TestStep
SaveProductStep.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Catalog\Test\TestStep
;
8
9
use Magento\Catalog\Test\Page\Adminhtml\CatalogProductEdit;
10
use Magento\Mtf\Fixture\InjectableFixture;
11
use Magento\Mtf\TestStep\TestStepInterface;
12
16
class
SaveProductStep
implements
TestStepInterface
17
{
23
protected
$product
;
24
30
protected
$catalogProductEdit
;
31
37
public
function
__construct
(InjectableFixture
$product
, CatalogProductEdit
$catalogProductEdit
)
38
{
39
$this->product =
$product
;
40
$this->catalogProductEdit =
$catalogProductEdit
;
41
}
42
48
public
function
run
()
49
{
50
$this->catalogProductEdit->getFormPageActions()->save($this->product);
51
}
52
}
Magento\Catalog\Test\TestStep\SaveProductStep
Definition:
SaveProductStep.php:16
Magento\Catalog\Test\TestStep\SaveProductStep\$product
$product
Definition:
SaveProductStep.php:23
Magento\Catalog\Test\TestStep
Definition:
AddAttributeToAttributeSetStep.php:7
Magento\Catalog\Test\TestStep\SaveProductStep\run
run()
Definition:
SaveProductStep.php:48
Magento\Catalog\Test\TestStep\SaveProductStep\$catalogProductEdit
$catalogProductEdit
Definition:
SaveProductStep.php:30
Magento\Catalog\Test\TestStep\SaveProductStep\__construct
__construct(InjectableFixture $product, CatalogProductEdit $catalogProductEdit)
Definition:
SaveProductStep.php:37