Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ContinueToPaypalInContextStep.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\Checkout\Test\Page\CheckoutOnepage;
10 use Magento\Mtf\TestStep\TestStepInterface;
11 
15 class ContinueToPaypalInContextStep implements TestStepInterface
16 {
22  protected $checkoutOnepage;
23 
28  public function __construct(CheckoutOnepage $checkoutOnepage)
29  {
30  $this->checkoutOnepage = $checkoutOnepage;
31  }
32 
38  public function run()
39  {
40  $this->checkoutOnepage->getPaymentBlock()->getSelectedPaymentMethodBlock()->inContextPaypalCheckout();
41  }
42 }