Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
SaveProductStep.php
Go to the documentation of this file.
1 <?php
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 
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 }
__construct(InjectableFixture $product, CatalogProductEdit $catalogProductEdit)