@@ -230,6 +230,8 @@ public function testSave()
230
230
'save ' ,
231
231
]);
232
232
233
+ $ origCustomer = $ this ->customer ;
234
+
233
235
$ this ->customer ->expects ($ this ->atLeastOnce ())
234
236
->method ('__toArray ' )
235
237
->willReturn (['default_billing ' , 'default_shipping ' ]);
@@ -406,7 +408,7 @@ public function testSave()
406
408
->method ('dispatch ' )
407
409
->with (
408
410
'customer_save_after_data_object ' ,
409
- ['customer_data_object ' => $ this ->customer , 'orig_customer_data_object ' => $ customerAttributesMetaData ]
411
+ ['customer_data_object ' => $ this ->customer , 'orig_customer_data_object ' => $ origCustomer ]
410
412
);
411
413
412
414
$ this ->model ->save ($ this ->customer );
@@ -464,6 +466,8 @@ public function testSaveWithPasswordHash()
464
466
]
465
467
);
466
468
469
+ $ origCustomer = $ this ->customer ;
470
+
467
471
$ this ->customer ->expects ($ this ->atLeastOnce ())
468
472
->method ('__toArray ' )
469
473
->willReturn (['default_billing ' , 'default_shipping ' ]);
@@ -631,7 +635,7 @@ public function testSaveWithPasswordHash()
631
635
->method ('dispatch ' )
632
636
->with (
633
637
'customer_save_after_data_object ' ,
634
- ['customer_data_object ' => $ this ->customer , 'orig_customer_data_object ' => $ customerAttributesMetaData ]
638
+ ['customer_data_object ' => $ this ->customer , 'orig_customer_data_object ' => $ origCustomer ]
635
639
);
636
640
637
641
$ this ->model ->save ($ this ->customer , $ passwordHash );
0 commit comments