Skip to content

Commit 414dad5

Browse files
committed
MC-22813: Changing Quantity and Adding to cart throws exception
- Fix static failure
1 parent df78449 commit 414dad5

File tree

1 file changed

+10
-8
lines changed
  • app/code/Magento/ConfigurableProduct/Test/Unit/Plugin/SalesRule/Model/Rule/Condition

1 file changed

+10
-8
lines changed

app/code/Magento/ConfigurableProduct/Test/Unit/Plugin/SalesRule/Model/Rule/Condition/ProductTest.php

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -176,14 +176,16 @@ private function createProductMock(): \PHPUnit_Framework_MockObject_MockObject
176176
{
177177
$productMock = $this->getMockBuilder(\Magento\Catalog\Model\Product::class)
178178
->disableOriginalConstructor()
179-
->setMethods([
180-
'getAttribute',
181-
'getId',
182-
'setQuoteItemQty',
183-
'setQuoteItemPrice',
184-
'getTypeId',
185-
'hasData',
186-
])
179+
->setMethods(
180+
[
181+
'getAttribute',
182+
'getId',
183+
'setQuoteItemQty',
184+
'setQuoteItemPrice',
185+
'getTypeId',
186+
'hasData',
187+
]
188+
)
187189
->getMock();
188190
$productMock
189191
->expects($this->any())

0 commit comments

Comments
 (0)