Skip to content

Commit

Permalink
MAGETWO-91620: It is not possible to use function setInAllAttributeSe…
Browse files Browse the repository at this point in the history
…tsFilter() together with getAllIds() for class Magento\Catalog\Model\ResourceModel\Product\Attribute\Collection

- Fix unit test
  • Loading branch information
nikshostko committed Aug 16, 2018
1 parent 279e1f5 commit 5c2c6ff
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ public function testSetInAllAttributeSetsFilter()
$this->selectMock->expects($this->atLeastOnce())->method('group')->with('entity_attribute.attribute_id')
->willReturnSelf();

$this->selectMock->expects($this->atLeastOnce())->method('having')->with(new \Zend_Db_Expr('COUNT(*)') . ' = ' . count($setIds))
->willReturnSelf();
$this->selectMock->expects($this->atLeastOnce())->method('having')
->with(new \Zend_Db_Expr('COUNT(*)') . ' = ' . count($setIds))->willReturnSelf();

$this->model->setInAllAttributeSetsFilter($setIds);
}
Expand Down

0 comments on commit 5c2c6ff

Please sign in to comment.