File tree 1 file changed +4
-6
lines changed
app/code/Magento/Customer/Test/Unit/Model/ResourceModel
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -128,6 +128,7 @@ protected function setUp()
128
128
'setCustomer ' ,
129
129
'getCountryModel ' ,
130
130
'getShouldIgnoreValidation ' ,
131
+ 'validate ' ,
131
132
'save ' ,
132
133
'getDataModel ' ,
133
134
'getCustomerId ' ,
@@ -191,6 +192,9 @@ public function testSave()
191
192
$ this ->address ->expects ($ this ->once ())
192
193
->method ('setCustomer ' )
193
194
->with ($ this ->customer );
195
+ $ this ->address ->expects ($ this ->once ())
196
+ ->method ('validate ' )
197
+ ->willReturn (true );
194
198
$ this ->address ->expects ($ this ->once ())
195
199
->method ('save ' );
196
200
$ this ->addressRegistry ->expects ($ this ->once ())
@@ -208,12 +212,6 @@ public function testSave()
208
212
$ this ->address ->expects ($ this ->once ())
209
213
->method ('getDataModel ' )
210
214
->willReturn ($ customerAddress );
211
- $ this ->address ->expects ($ this ->once ())
212
- ->method ('getShouldIgnoreValidation ' )
213
- ->willReturn (true );
214
- $ this ->address ->expects ($ this ->once ())
215
- ->method ('validate ' )
216
- ->willReturn (true );
217
215
218
216
$ this ->repository ->save ($ customerAddress );
219
217
}
You can’t perform that action at this time.
0 commit comments