Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
FillAccountInformationStep.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 
16 class FillAccountInformationStep implements TestStepInterface
17 {
23  protected $orderCreateIndex;
24 
30  protected $customer;
31 
37  public function __construct(OrderCreateIndex $orderCreateIndex, Customer $customer)
38  {
39  $this->orderCreateIndex = $orderCreateIndex;
40  $this->customer = $customer;
41  }
42 
48  public function run()
49  {
50  $this->orderCreateIndex->getCreateBlock()->getAccountBlock()->fill($this->customer);
51  }
52 }
__construct(OrderCreateIndex $orderCreateIndex, Customer $customer)