Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
OpenCustomerOnBackendStep.php
Go to the documentation of this file.
1 <?php
8 
10 use Magento\Customer\Test\Page\Adminhtml\CustomerIndex;
11 use Magento\Mtf\TestStep\TestStepInterface;
12 
17 class OpenCustomerOnBackendStep implements TestStepInterface
18 {
24  protected $customer;
25 
31  protected $customerIndex;
32 
38  public function __construct(Customer $customer, CustomerIndex $customerIndex)
39  {
40  $this->customer = $customer;
41  $this->customerIndex = $customerIndex;
42  }
43 
49  public function run()
50  {
51  $this->customerIndex->open();
52  $this->customerIndex->getCustomerGridBlock()->searchAndOpen(['email' => $this->customer->getEmail()]);
53  }
54 }
__construct(Customer $customer, CustomerIndex $customerIndex)