@@ -44,6 +44,7 @@ public function testAuthorizeSuccess()
44
44
$ response = $ this ->gateway ->authorize ($ this ->options )->send ();
45
45
46
46
$ this ->assertInstanceOf ('\Omnipay\PayPal\Message\ExpressAuthorizeResponse ' , $ response );
47
+ $ this ->assertFalse ($ response ->isPending ());
47
48
$ this ->assertFalse ($ response ->isSuccessful ());
48
49
$ this ->assertTrue ($ response ->isRedirect ());
49
50
$ this ->assertEquals ('https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout&useraction=commit&token=EC-42721413K79637829 ' , $ response ->getRedirectUrl ());
@@ -55,6 +56,7 @@ public function testAuthorizeFailure()
55
56
56
57
$ response = $ this ->gateway ->authorize ($ this ->options )->send ();
57
58
59
+ $ this ->assertFalse ($ response ->isPending ());
58
60
$ this ->assertFalse ($ response ->isSuccessful ());
59
61
$ this ->assertFalse ($ response ->isRedirect ());
60
62
$ this ->assertNull ($ response ->getTransactionReference ());
@@ -68,6 +70,7 @@ public function testPurchaseSuccess()
68
70
$ response = $ this ->gateway ->purchase ($ this ->options )->send ();
69
71
70
72
$ this ->assertInstanceOf ('\Omnipay\PayPal\Message\ExpressAuthorizeResponse ' , $ response );
73
+ $ this ->assertFalse ($ response ->isPending ());
71
74
$ this ->assertFalse ($ response ->isSuccessful ());
72
75
$ this ->assertTrue ($ response ->isRedirect ());
73
76
$ this ->assertEquals ('https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout&useraction=commit&token=EC-42721413K79637829 ' , $ response ->getRedirectUrl ());
@@ -79,6 +82,7 @@ public function testPurchaseFailure()
79
82
80
83
$ response = $ this ->gateway ->purchase ($ this ->options )->send ();
81
84
85
+ $ this ->assertFalse ($ response ->isPending ());
82
86
$ this ->assertFalse ($ response ->isSuccessful ());
83
87
$ this ->assertFalse ($ response ->isRedirect ());
84
88
$ this ->assertNull ($ response ->getTransactionReference ());
0 commit comments