@@ -241,6 +241,8 @@ public function testSave()
241
241
'save ' ,
242
242
]);
243
243
244
+ $ origCustomer = $ this ->customer ;
245
+
244
246
$ this ->customer ->expects ($ this ->atLeastOnce ())
245
247
->method ('__toArray ' )
246
248
->willReturn (['default_billing ' , 'default_shipping ' ]);
@@ -417,7 +419,7 @@ public function testSave()
417
419
->method ('dispatch ' )
418
420
->with (
419
421
'customer_save_after_data_object ' ,
420
- ['customer_data_object ' => $ this ->customer , 'orig_customer_data_object ' => $ customerAttributesMetaData ]
422
+ ['customer_data_object ' => $ this ->customer , 'orig_customer_data_object ' => $ origCustomer ]
421
423
);
422
424
423
425
$ this ->model ->save ($ this ->customer );
@@ -475,6 +477,8 @@ public function testSaveWithPasswordHash()
475
477
]
476
478
);
477
479
480
+ $ origCustomer = $ this ->customer ;
481
+
478
482
$ this ->customer ->expects ($ this ->atLeastOnce ())
479
483
->method ('__toArray ' )
480
484
->willReturn (['default_billing ' , 'default_shipping ' ]);
@@ -642,7 +646,7 @@ public function testSaveWithPasswordHash()
642
646
->method ('dispatch ' )
643
647
->with (
644
648
'customer_save_after_data_object ' ,
645
- ['customer_data_object ' => $ this ->customer , 'orig_customer_data_object ' => $ customerAttributesMetaData ]
649
+ ['customer_data_object ' => $ this ->customer , 'orig_customer_data_object ' => $ origCustomer ]
646
650
);
647
651
648
652
$ this ->model ->save ($ this ->customer , $ passwordHash );
0 commit comments