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