Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
OpenOrderStep.php
Go to the documentation of this file.
1 <?php
8 
10 use Magento\Sales\Test\Page\Adminhtml\OrderIndex;
11 use Magento\Mtf\TestStep\TestStepInterface;
12 
16 class OpenOrderStep implements TestStepInterface
17 {
23  protected $orderIndex;
24 
30  protected $order;
31 
37  public function __construct(OrderInjectable $order, OrderIndex $orderIndex)
38  {
39  $this->orderIndex = $orderIndex;
40  $this->order = $order;
41  }
42 
48  public function run()
49  {
50  $this->orderIndex->open();
51  $this->orderIndex->getSalesOrderGrid()->searchAndOpen(['id' => $this->order->getId()]);
52  }
53 }
__construct(OrderInjectable $order, OrderIndex $orderIndex)