File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
ConfigurableProduct/Test/Unit/Model Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ public function testAddChild(): void
182
182
->getMock ();
183
183
$ extensionAttributesMock = $ this ->getMockBuilder (ProductExtensionInterface::class)
184
184
->disableOriginalConstructor ()
185
- ->addMethods (
185
+ ->onlyMethods (
186
186
[
187
187
'getConfigurableProductOptions ' ,
188
188
'setConfigurableProductOptions ' ,
Original file line number Diff line number Diff line change @@ -285,7 +285,7 @@ public function testSave(): void
285
285
->with ('_cache_instance_used_product_attribute_ids ' )
286
286
->willReturn (true );
287
287
$ extensionAttributes = $ this ->getMockBuilder (ProductExtensionInterface::class)
288
- ->addMethods (['getConfigurableProductOptions ' , 'getConfigurableProductLinks ' ])
288
+ ->onlyMethods (['getConfigurableProductOptions ' , 'getConfigurableProductLinks ' ])
289
289
->getMockForAbstractClass ();
290
290
$ this ->entityMetadata ->expects ($ this ->any ())
291
291
->method ('getLinkField ' )
Original file line number Diff line number Diff line change @@ -155,8 +155,10 @@ public function testRegenerateStatic(): void
155
155
->method ('writeln ' )
156
156
->withConsecutive (
157
157
['Starting compilation ' ],
158
+ [],
158
159
['Compilation complete ' ],
159
160
['Starting deployment of static content ' ],
161
+ [],
160
162
['Deployment of static content complete ' ]
161
163
);
162
164
You can’t perform that action at this time.
0 commit comments