Skip to content

Commit d21edaf

Browse files
committed
MAGETWO-51447: CatalogSearch Fulltext Collection not allows to use filters with multiple values
- Fix unit test
1 parent 22b078a commit d21edaf

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

app/code/Magento/CatalogSearch/Test/Unit/Model/Search/TableMapperTest.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ function ($table) {
119119
->method('getStore')
120120
->willReturn($this->store);
121121
$this->attributeCollection = $this->getMockBuilder(
122-
\Magento\Catalog\Model\ResourceModel\Product\Attribute\Collection::class
122+
'\Magento\Catalog\Model\ResourceModel\Product\Attribute\Collection'
123123
)
124124
->disableOriginalConstructor()
125125
->getMock();
@@ -129,11 +129,8 @@ function ($table) {
129129
->setMethods(['create'])
130130
->disableOriginalConstructor()
131131
->getMock();
132-
$attributeCollectionFactory->expects($this->once())
133-
->method('create')
134-
->willReturn($this->attributeCollection);
135-
$this->attributeCollection->expects($this->never())
136-
->method('getItemByColumnValue');
132+
$attributeCollectionFactory->expects($this->never())
133+
->method('create');
137134
$this->eavConfig = $this->getMockBuilder(\Magento\Eav\Model\Config::class)
138135
->setMethods(['getAttribute'])
139136
->disableOriginalConstructor()

0 commit comments

Comments
 (0)