Sylius\Behat\Page\Shop\Checkout\SelectPaymentPageInterface::changeShippingMethodByStepLabel PHP Méthode

changeShippingMethodByStepLabel() public méthode

    public function changeShippingMethodByStepLabel();

Usage Example

Exemple #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.');
 }