Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
UnholdOrderStep.php
Go to the documentation of this file.
1 <?php
8 
10 use Magento\Sales\Test\Page\Adminhtml\OrderIndex;
11 use Magento\Sales\Test\Page\Adminhtml\SalesOrderView;
12 use Magento\Mtf\TestStep\TestStepInterface;
13 
17 class UnholdOrderStep implements TestStepInterface
18 {
24  protected $orderIndex;
25 
31  protected $salesOrderView;
32 
38  protected $order;
39 
46  public function __construct(OrderIndex $orderIndex, SalesOrderView $salesOrderView, OrderInjectable $order)
47  {
48  $this->orderIndex = $orderIndex;
49  $this->salesOrderView = $salesOrderView;
50  $this->order = $order;
51  }
52 
58  public function run()
59  {
60  $this->orderIndex->open();
61  $this->orderIndex->getSalesOrderGrid()->searchAndOpen(['id' => $this->order->getId()]);
62  $this->salesOrderView->getPageActions()->unhold();
63  }
64 }
__construct(OrderIndex $orderIndex, SalesOrderView $salesOrderView, OrderInjectable $order)