File tree 2 files changed +3
-2
lines changed
app/code/Magento/SalesRule 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ class Validator extends \Magento\Framework\Model\AbstractModel
59
59
protected $ _skipActionsValidation = false ;
60
60
61
61
/**
62
- * Catalog data
62
+ * Catalog data helper
63
63
*
64
64
* @var \Magento\Catalog\Helper\Data|null
65
65
*/
Original file line number Diff line number Diff line change @@ -231,12 +231,13 @@ public function testCollectItemHasParent()
231
231
{
232
232
$ itemWithParentId = $ this ->getMockBuilder (Item::class)
233
233
->addMethods (['getNoDiscount ' ])
234
- ->onlyMethods (['getParentItem ' , 'getId ' ])
234
+ ->onlyMethods (['getParentItem ' , 'getId ' , ' getExtensionAttributes ' ])
235
235
->disableOriginalConstructor ()
236
236
->getMock ();
237
237
$ itemWithParentId ->expects ($ this ->once ())->method ('getNoDiscount ' )->willReturn (false );
238
238
$ itemWithParentId ->expects ($ this ->any ())->method ('getId ' )->willReturn (1 );
239
239
$ itemWithParentId ->expects ($ this ->any ())->method ('getParentItem ' )->willReturn (true );
240
+ $ itemWithParentId ->expects ($ this ->any ())->method ('getExtensionAttributes ' )->willReturn (false );
240
241
241
242
$ this ->validatorMock ->expects ($ this ->any ())->method ('canApplyDiscount ' )->willReturn (true );
242
243
$ this ->validatorMock ->expects ($ this ->any ())->method ('sortItemsByPriority ' )
You can’t perform that action at this time.
0 commit comments