Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
PlaceOrderWith3dSecureFailedStep.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 use Magento\Braintree\Test\Fixture\Secure3dBraintree;
12 
16 class PlaceOrderWith3dSecureFailedStep implements TestStepInterface
17 {
23  private $checkoutOnepage;
24 
30  private $secure3d;
31 
36  public function __construct(
37  CheckoutOnepage $checkoutOnepage,
38  Secure3dBraintree $secure3d
39  ) {
40  $this->checkoutOnepage = $checkoutOnepage;
41  $this->secure3d = $secure3d;
42  }
43 
49  public function run()
50  {
51  $this->checkoutOnepage->getPaymentBlock()->getSelectedPaymentMethodBlock()->clickPlaceOrder();
52 
53  $this->checkoutOnepage->getBraintree3dSecureBlock()->fill($this->secure3d);
54  }
55 }
__construct(CheckoutOnepage $checkoutOnepage, Secure3dBraintree $secure3d)