Sylius\Behat\Page\Shop\Checkout\SelectPaymentPageInterface::changeShippingMethodByStepLabel PHP Method

changeShippingMethodByStepLabel() public method

    public function changeShippingMethodByStepLabel();

Usage Example

示例#1
0
 /**
  * @When I go to the shipping step
  */
 public function iGoToTheShippingStep()
 {
     if ($this->selectPaymentPage->isOpen()) {
         $this->selectPaymentPage->changeShippingMethodByStepLabel();
         return;
     }
     if ($this->completePage->isOpen()) {
         $this->completePage->changeShippingMethod();
         return;
     }
     throw new UnexpectedPageException('It is impossible to go to shipping step from current page.');
 }