Skip to content

Commit 5c2c6ff

Browse files
committed
MAGETWO-91620: It is not possible to use function setInAllAttributeSetsFilter() together with getAllIds() for class Magento\Catalog\Model\ResourceModel\Product\Attribute\Collection
- Fix unit test
1 parent 279e1f5 commit 5c2c6ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Eav/Test/Unit/Model/ResourceModel/Entity/Attribute/CollectionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ public function testSetInAllAttributeSetsFilter()
150150
$this->selectMock->expects($this->atLeastOnce())->method('group')->with('entity_attribute.attribute_id')
151151
->willReturnSelf();
152152

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

156156
$this->model->setInAllAttributeSetsFilter($setIds);
157157
}

0 commit comments

Comments
 (0)