Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
SelectCustomerOrderStep.php
Go to the documentation of this file.
1 <?php
8 
10 use Magento\Sales\Test\Page\Adminhtml\OrderCreateIndex;
11 use Magento\Mtf\TestStep\TestStepInterface;
12 
17 class SelectCustomerOrderStep implements TestStepInterface
18 {
24  protected $orderCreateIndex;
25 
31  protected $customer;
32 
38  public function __construct(OrderCreateIndex $orderCreateIndex, Customer $customer)
39  {
40  $this->orderCreateIndex = $orderCreateIndex;
41  $this->customer = $customer;
42  }
43 
49  public function run()
50  {
51  $this->orderCreateIndex->getCustomerBlock()->selectCustomer($this->customer);
52  }
53 }
__construct(OrderCreateIndex $orderCreateIndex, Customer $customer)