Skip to content

Commit a6b0d37

Browse files
author
Stanislav Idolov
committed
Fixed static test failures
1 parent a2ec203 commit a6b0d37

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

app/code/Magento/Quote/Model/ResourceModel/Quote.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,17 @@ public function markQuotesRecollectOnCatalogRules()
230230
return $this;
231231
}
232232

233+
/**
234+
* @param \Magento\Catalog\Model\Product $product
235+
* @return Quote
236+
* @deprecated
237+
* @see subtractProductFromQuotes
238+
*/
239+
public function substractProductFromQuotes($product)
240+
{
241+
return $this->subtractProductFromQuotes($product);
242+
}
243+
233244
/**
234245
* Subtract product from all quotes quantities
235246
*

app/code/Magento/Quote/Test/Unit/Model/ResourceModel/QuoteTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,17 @@ class QuoteTest extends \PHPUnit_Framework_TestCase
1919
* @var Quote|\PHPUnit_Framework_MockObject_MockObject
2020
*/
2121
private $quoteMock;
22+
2223
/**
2324
* @var Manager|\PHPUnit_Framework_MockObject_MockObject
2425
*/
2526
private $sequenceManagerMock;
27+
2628
/**
2729
* @var SequenceInterface|\PHPUnit_Framework_MockObject_MockObject
2830
*/
2931
private $sequenceMock;
32+
3033
/**
3134
* @var \Magento\Quote\Model\ResourceModel\Quote
3235
*/
@@ -96,4 +99,4 @@ public function getReservedOrderIdDataProvider()
9699
[\Magento\Sales\Model\Order::ENTITY, 3, '3000000001']
97100
];
98101
}
99-
}
102+
}

0 commit comments

Comments
 (0)