File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
app/code/Magento/Paypal/Test/Unit/Model/Api Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -194,9 +194,21 @@ public function testCallGetExpressCheckoutDetails()
194
194
->method ('read ' )
195
195
->will ($ this ->returnValue (
196
196
"\r\n" . 'ACK=Success&SHIPTONAME=Ship%20To%20Name '
197
+ . '&SHIPTOSTREET=testStreet '
198
+ . '&SHIPTOSTREET2=testApartment '
199
+ . '&BUSINESS=testCompany '
200
+ . '&SHIPTOCITY=testCity '
201
+ . '&PHONENUM=223322 '
202
+ . '&STATE=testSTATE '
197
203
));
198
204
$ this ->model ->callGetExpressCheckoutDetails ();
199
- $ this ->assertEquals ('Ship To Name ' , $ this ->model ->getExportedShippingAddress ()->getData ('firstname ' ));
205
+ $ address = $ this ->model ->getExportedShippingAddress ();
206
+ $ this ->assertEquals ('Ship To Name ' , $ address ->getData ('firstname ' ));
207
+ $ this ->assertEquals (implode ("\n" , ['testStreet ' ,'testApartment ' ]), $ address ->getStreet ());
208
+ $ this ->assertEquals ('testCompany ' , $ address ->getCompany ());
209
+ $ this ->assertEquals ('testCity ' , $ address ->getCity ());
210
+ $ this ->assertEquals ('223322 ' , $ address ->getTelephone ());
211
+ $ this ->assertEquals ('testSTATE ' , $ address ->getRegion ());
200
212
}
201
213
202
214
public function testGetDebugReplacePrivateDataKeys ()
You can’t perform that action at this time.
0 commit comments