Beispiel #1
0
 /**
  * @Then I should be redirected back to PayPal Express Checkout page
  */
 public function iShouldBeRedirectedToPaypalExpressCheckoutPage()
 {
     Assert::true($this->paypalExpressCheckoutPage->isOpen());
 }
Beispiel #2
0
 /**
  * @Then I should be redirected to PayPal Express Checkout page
  */
 public function iShouldBeRedirectedToPaypalExpressCheckoutPage()
 {
     expect($this->paypalExpressCheckoutPage->isOpen())->toBe(true);
 }
 function it_throws_not_equal_exception_when_redirection_from_paypal_express_checkout_fails(PaypalExpressCheckoutPageInterface $paypalExpressCheckoutPage)
 {
     $paypalExpressCheckoutPage->isOpen()->willReturn(false);
     $this->shouldThrow(NotEqualException::class)->during('iShouldBeRedirectedToPaypalExpressCheckoutPage');
 }