@@ -224,7 +224,9 @@ public function testSave()
224
224
'getId '
225
225
]
226
226
);
227
- $ customerModel = $ this ->createPartialMock (\Magento \Customer \Model \Customer::class, [
227
+ $ customerModel = $ this ->createPartialMock (
228
+ \Magento \Customer \Model \Customer::class,
229
+ [
228
230
'getId ' ,
229
231
'setId ' ,
230
232
'setStoreId ' ,
@@ -239,7 +241,8 @@ public function testSave()
239
241
'setFirstFailure ' ,
240
242
'setLockExpires ' ,
241
243
'save ' ,
242
- ]);
244
+ ]
245
+ );
243
246
244
247
$ origCustomer = $ this ->customer ;
245
248
@@ -362,16 +365,20 @@ public function testSave()
362
365
363
366
$ customerModel ->expects ($ this ->once ())
364
367
->method ('setRpToken ' )
365
- ->willReturnMap ([
366
- ['rpToken ' , $ customerModel ],
367
- [null , $ customerModel ],
368
- ]);
368
+ ->willReturnMap (
369
+ [
370
+ ['rpToken ' , $ customerModel ],
371
+ [null , $ customerModel ],
372
+ ]
373
+ );
369
374
$ customerModel ->expects ($ this ->once ())
370
375
->method ('setRpTokenCreatedAt ' )
371
- ->willReturnMap ([
372
- ['rpTokenCreatedAt ' , $ customerModel ],
373
- [null , $ customerModel ],
374
- ]);
376
+ ->willReturnMap (
377
+ [
378
+ ['rpTokenCreatedAt ' , $ customerModel ],
379
+ [null , $ customerModel ],
380
+ ]
381
+ );
375
382
376
383
$ customerModel ->expects ($ this ->once ())
377
384
->method ('setPasswordHash ' )
@@ -432,14 +439,17 @@ public function testSaveWithPasswordHash()
432
439
$ storeId = 2 ;
433
440
$ passwordHash = 'ukfa4sdfa56s5df02asdf4rt ' ;
434
441
435
- $ customerSecureData = $ this ->createPartialMock (\Magento \Customer \Model \Data \CustomerSecure::class, [
442
+ $ customerSecureData = $ this ->createPartialMock (
443
+ \Magento \Customer \Model \Data \CustomerSecure::class,
444
+ [
436
445
'getRpToken ' ,
437
446
'getRpTokenCreatedAt ' ,
438
447
'getPasswordHash ' ,
439
448
'getFailuresNum ' ,
440
449
'getFirstFailure ' ,
441
450
'getLockExpires ' ,
442
- ]);
451
+ ]
452
+ );
443
453
$ region = $ this ->getMockForAbstractClass (
444
454
\Magento \Customer \Api \Data \RegionInterface::class,
445
455
[],
@@ -481,7 +491,9 @@ public function testSaveWithPasswordHash()
481
491
->method ('__toArray ' )
482
492
->willReturn (['default_billing ' , 'default_shipping ' ]);
483
493
484
- $ customerModel = $ this ->createPartialMock (\Magento \Customer \Model \Customer::class, [
494
+ $ customerModel = $ this ->createPartialMock (
495
+ \Magento \Customer \Model \Customer::class,
496
+ [
485
497
'getId ' ,
486
498
'setId ' ,
487
499
'setStoreId ' ,
@@ -493,7 +505,8 @@ public function testSaveWithPasswordHash()
493
505
'getDataModel ' ,
494
506
'setPasswordHash ' ,
495
507
'save ' ,
496
- ]);
508
+ ]
509
+ );
497
510
$ customerAttributesMetaData = $ this ->getMockForAbstractClass (
498
511
\Magento \Framework \Api \CustomAttributesDataInterface::class,
499
512
[],
@@ -521,7 +534,6 @@ public function testSaveWithPasswordHash()
521
534
$ this ->customerRegistry ->expects ($ this ->atLeastOnce ())
522
535
->method ('remove ' )
523
536
->with ($ customerId );
524
-
525
537
$ this ->customerRegistry ->expects ($ this ->once ())
526
538
->method ('retrieveSecureData ' )
527
539
->with ($ customerId )
@@ -544,7 +556,6 @@ public function testSaveWithPasswordHash()
544
556
$ customerSecureData ->expects ($ this ->once ())
545
557
->method ('getLockExpires ' )
546
558
->willReturn ('lockExpires ' );
547
-
548
559
$ this ->customer ->expects ($ this ->atLeastOnce ())
549
560
->method ('getId ' )
550
561
->willReturn ($ customerId );
0 commit comments