Skip to content

Commit 854cfde

Browse files
author
Oleksandr Karpenko
committed
MAGETWO-49708: Keyword search is broken in customer grid
1 parent 6452558 commit 854cfde

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lib/internal/Magento/Framework/View/Test/Unit/Element/UiComponent/DataProvider/FulltextFilterTest.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,11 @@ protected function setUp()
7878
$this->selectMock = $this->getMock(Select::class, ['getPart', 'where'], [], '', false);
7979

8080
$this->resourceModelAbstractDb = $this->getMockBuilder(ResourceModelAbstractDb::class)
81-
->setMethods(['getMainTable'])
8281
->disableOriginalConstructor()
8382
->getMockForAbstractClass();
8483

8584
$this->collectionAbstractDbMock = $this->getMockBuilder(CollectionAbstractDb::class)
86-
->setMethods(['getConnection', 'getResource', 'getSelect'])
85+
->setMethods(['getConnection', 'getSelect', 'getMainTable'])
8786
->disableOriginalConstructor()
8887
->getMockForAbstractClass();
8988

@@ -95,7 +94,7 @@ public function testApply()
9594
$filter = new Filter();
9695
$filter->setValue('test');
9796

98-
$this->resourceModelAbstractDb->expects($this->any())
97+
$this->collectionAbstractDbMock->expects($this->any())
9998
->method('getMainTable')
10099
->willReturn('testTable');
101100

@@ -117,9 +116,6 @@ public function testApply()
117116
->method('where')
118117
->willReturn(null);
119118

120-
$this->collectionAbstractDbMock->expects($this->once())
121-
->method('getResource')
122-
->willReturn($this->resourceModelAbstractDb);
123119
$this->collectionAbstractDbMock->expects($this->exactly(2))
124120
->method('getSelect')
125121
->willReturn($this->selectMock);

0 commit comments

Comments
 (0)