@@ -276,17 +276,25 @@ public function testAssignData()
276
276
->with ($ ccExpYear )
277
277
->willReturnSelf ();
278
278
279
- $ this ->infoInstanceMock ->expects ($ this ->atLeastOnce ( ))
279
+ $ this ->infoInstanceMock ->expects ($ this ->at ( 0 ))
280
280
->method ('setAdditionalInformation ' )
281
- ->willReturnMap (
282
- [
283
- ['device_data ' , $ deviceData ],
284
- ['cc_last4 ' , $ ccLast4 ],
285
- ['cc_token ' , $ ccToken ],
286
- ['payment_method_nonce ' , $ paymentMethodNonce ],
287
- ['store_in_vault ' , $ storeInVault ]
288
- ]
289
- );
281
+ ->with ('device_data ' , $ deviceData );
282
+
283
+ $ this ->infoInstanceMock ->expects ($ this ->at (1 ))
284
+ ->method ('setAdditionalInformation ' )
285
+ ->with ('cc_last4 ' , $ ccLast4 );
286
+
287
+ $ this ->infoInstanceMock ->expects ($ this ->at (2 ))
288
+ ->method ('setAdditionalInformation ' )
289
+ ->with ('cc_token ' , $ ccToken );
290
+
291
+ $ this ->infoInstanceMock ->expects ($ this ->at (3 ))
292
+ ->method ('setAdditionalInformation ' )
293
+ ->with ('store_in_vault ' , $ storeInVault );
294
+
295
+ $ this ->infoInstanceMock ->expects ($ this ->at (4 ))
296
+ ->method ('setAdditionalInformation ' )
297
+ ->with ('payment_method_nonce ' , $ paymentMethodNonce );
290
298
291
299
$ this ->model ->assignData ($ data );
292
300
}
0 commit comments