File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
app/code/Magento/Customer/Test/Unit/Model/ResourceModel Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -211,6 +211,7 @@ public function testSave()
211
211
'setFirstFailure ' ,
212
212
'setLockExpires ' ,
213
213
'save ' ,
214
+ 'setGroupId '
214
215
]
215
216
);
216
217
@@ -245,9 +246,15 @@ public function testSave()
245
246
$ this ->customer ->expects ($ this ->atLeastOnce ())
246
247
->method ('getId ' )
247
248
->willReturn ($ customerId );
248
- $ this ->customer ->expects ($ this ->atLeastOnce ( ))
249
+ $ this ->customer ->expects ($ this ->at ( 4 ))
249
250
->method ('__toArray ' )
250
251
->willReturn ([]);
252
+ $ this ->customer ->expects ($ this ->at (3 ))
253
+ ->method ('__toArray ' )
254
+ ->willReturn (['group_id ' => 1 ]);
255
+ $ customerModel ->expects ($ this ->once ())
256
+ ->method ('setGroupId ' )
257
+ ->with (1 );
251
258
$ this ->customerRegistry ->expects ($ this ->atLeastOnce ())
252
259
->method ('retrieve ' )
253
260
->with ($ customerId )
You can’t perform that action at this time.
0 commit comments