File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
app/code/Magento/Catalog/Test/Unit/Controller/Adminhtml/Product/Initialization Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -278,15 +278,19 @@ public function testInitialize()
278
278
->method ('getOptionsReadOnly ' )
279
279
->willReturn (false );
280
280
281
+ $ firstExpectedCustomOption = clone $ this ->customOptionMock ;
282
+ $ firstExpectedCustomOption ->setData ($ optionsData ['option2 ' ]);
283
+ $ secondExpectedCustomOption = clone $ this ->customOptionMock ;
284
+ $ secondExpectedCustomOption ->setData ($ optionsData ['option3 ' ]);
281
285
$ this ->customOptionFactoryMock ->expects ($ this ->any ())
282
286
->method ('create ' )
283
287
->willReturnMap ([
284
288
[
285
289
['data ' => $ optionsData ['option2 ' ]],
286
- ( clone $ this -> customOptionMock )-> setData ( $ optionsData [ ' option2 ' ])
290
+ $ firstExpectedCustomOption
287
291
], [
288
292
['data ' => $ optionsData ['option3 ' ]],
289
- ( clone $ this -> customOptionMock )-> setData ( $ optionsData [ ' option3 ' ])
293
+ $ secondExpectedCustomOption
290
294
]
291
295
]);
292
296
You can’t perform that action at this time.
0 commit comments