Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
GetPaymentUpdateStep.php
Go to the documentation of this file.
1 <?php
7 
8 use Magento\Mtf\TestStep\TestStepInterface;
10 use Magento\Sales\Test\Page\Adminhtml\OrderIndex;
11 use Magento\Sales\Test\Page\Adminhtml\SalesOrderView;
12 
16 class GetPaymentUpdateStep implements TestStepInterface
17 {
23  private $orderIndex;
24 
30  private $salesOrderView;
31 
37  private $order;
38 
44  public function __construct(
45  OrderIndex $orderIndex,
46  SalesOrderView $salesOrderView,
47  OrderInjectable $order
48  ) {
49  $this->orderIndex = $orderIndex;
50  $this->salesOrderView = $salesOrderView;
51  $this->order = $order;
52  }
53 
59  public function run()
60  {
61  $this->orderIndex->open();
62  $this->orderIndex->getSalesOrderGrid()->searchAndOpen(['id' => $this->order->getId()]);
63  $this->salesOrderView->getPageActions()->paymentUpdate();
64  }
65 }
__construct(OrderIndex $orderIndex, SalesOrderView $salesOrderView, OrderInjectable $order)
$order
Definition: order.php:55