Skip to content

Commit

Permalink
Merge pull request #214 from magento-sparta/MDVA-3
Browse files Browse the repository at this point in the history
[SUPPORT] MDVA-3
  • Loading branch information
slavvka committed Nov 27, 2015
2 parents 2b9aecb + f2f39af commit 48de512
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ public function getStockItem($productId, $websiteId)
if (!isset($this->stockItems[$key])) {
$criteria = $this->stockItemCriteriaFactory->create();
$criteria->setProductsFilter($productId);
$criteria->setWebsiteFilter($websiteId);
$collection = $this->stockItemRepository->getList($criteria);
$stockItem = current($collection->getItems());
if ($stockItem && $stockItem->getItemId()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,6 @@ public function testGetStock()
public function testGetStockItem()
{
$this->stockItemCriteriaFactory->expects($this->once())->method('create')->willReturn($this->stockItemCriteria);
$this->stockItemCriteria->expects($this->once())->method('setWebsiteFilter')->willReturn(null);
$this->stockItemCriteria->expects($this->once())->method('setProductsFilter')->willReturn(null);
$stockItemCollection = $this->getMock(
'\Magento\CatalogInventory\Model\Resource\Stock\Item\Collection',
Expand Down

0 comments on commit 48de512

Please sign in to comment.