Skip to content

Commit d90a41c

Browse files
author
Dmytro Voskoboinikov
committed
MAGETWO-43883: Category_ID does not work as filter in search criteria
1 parent 9881bf2 commit d90a41c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/code/Magento/Catalog/Test/Unit/Model/ResourceModel/Product/CollectionTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ class CollectionTest extends \PHPUnit_Framework_TestCase
2828
*/
2929
protected $collection;
3030

31+
/**
32+
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
33+
*/
3134
public function setUp()
3235
{
3336
$entityFactory = $this->getMock('Magento\Framework\Data\Collection\EntityFactory', [], [], '', false);
@@ -147,7 +150,7 @@ public function testAddProductCategoriesFilter()
147150
$this->connectionMock->expects($this->any())->method('getId')->willReturn(1);
148151
$this->connectionMock->expects($this->exactly(2))->method('prepareSqlCondition')->withConsecutive(
149152
['cat.category_id', $condition],
150-
['e.entity_id' , [$conditionType => $this->selectMock]]
153+
['e.entity_id', [$conditionType => $this->selectMock]]
151154
)->willReturnOnConsecutiveCalls(
152155
$preparedSql,
153156
'e.entity_id IN (1,2)'

0 commit comments

Comments
 (0)