Sylius\Behat\Page\Shop\Checkout\CompletePageInterface::changeAddress PHP Method

changeAddress() public method

public changeAddress ( )
    public function changeAddress();

Usage Example

コード例 #1
0
ファイル: CheckoutContext.php プロジェクト: starspire/Sylius
 /**
  * @When I go to the addressing step
  */
 public function iGoToTheAddressingStep()
 {
     if ($this->selectShippingPage->isOpen()) {
         $this->selectShippingPage->changeAddressByStepLabel();
         return;
     }
     if ($this->selectPaymentPage->isOpen()) {
         $this->selectPaymentPage->changeAddressByStepLabel();
         return;
     }
     if ($this->completePage->isOpen()) {
         $this->completePage->changeAddress();
         return;
     }
     throw new UnexpectedPageException('It is impossible to go to addressing step from current page.');
 }