Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
CheckTermOnMultishippingStep.php
Go to the documentation of this file.
1 <?php
7 
8 use Magento\Multishipping\Test\Page\MultishippingCheckoutOverview;
9 use Magento\Mtf\TestStep\TestStepInterface;
11 
15 class CheckTermOnMultishippingStep implements TestStepInterface
16 {
23 
29  protected $agreementValue;
30 
35  public function __construct(
36  MultishippingCheckoutOverview $multishippingCheckoutOverview,
37  $agreementValue = 'No'
38  ) {
39  $this->multishippingCheckoutOverview = $multishippingCheckoutOverview;
40  $this->agreementValue = $agreementValue;
41  }
42 
48  public function run()
49  {
50  $this->multishippingCheckoutOverview->getAgreementReview()->setAgreement($this->agreementValue);
51  }
52 }
__construct(MultishippingCheckoutOverview $multishippingCheckoutOverview, $agreementValue='No')