Skip to content

Commit 9dc26cc

Browse files
committed
ENGCOM-4481: Unit test fix.
1 parent a546e14 commit 9dc26cc

File tree

1 file changed

+7
-1
lines changed
  • lib/internal/Magento/Framework/Search/Test/Unit/Adapter/Mysql

1 file changed

+7
-1
lines changed

lib/internal/Magento/Framework/Search/Test/Unit/Adapter/Mysql/AdapterTest.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,16 @@ public function testQuery()
161161
$select = $this->getMockBuilder(\Magento\Framework\DB\Select::class)
162162
->disableOriginalConstructor()
163163
->getMock();
164-
$this->connectionAdapter->expects($this->once())
164+
165+
$this->connectionAdapter->expects($this->exactly(2))
165166
->method('select')
166167
->willReturn($select);
167168

169+
$this->connectionAdapter->expects($this->once())
170+
->method('fetchOne')
171+
->with($select)
172+
->willReturn($selectResult['total']);
173+
168174
$table = $this->getMockBuilder(\Magento\Framework\DB\Ddl\Table::class)
169175
->disableOriginalConstructor()
170176
->getMock();

0 commit comments

Comments
 (0)