Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
SelectStoreStep.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\Sales\Test\Page\Adminhtml\OrderCreateIndex;
11 use Magento\Mtf\TestStep\TestStepInterface;
12 
17 class SelectStoreStep implements TestStepInterface
18 {
24  protected $store;
25 
31  protected $orderCreateIndex;
32 
40  public function __construct(Store $store, OrderCreateIndex $orderCreateIndex)
41  {
42  $this->store = $store;
43  $this->orderCreateIndex = $orderCreateIndex;
44  }
45 
51  public function run()
52  {
53  if ($this->orderCreateIndex->getStoreBlock()->isVisible()) {
54  $this->orderCreateIndex->getStoreBlock()->selectStoreView($this->store);
55  }
56  }
57 }
__construct(Store $store, OrderCreateIndex $orderCreateIndex)