We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a546e14 commit 9dc26ccCopy full SHA for 9dc26cc
lib/internal/Magento/Framework/Search/Test/Unit/Adapter/Mysql/AdapterTest.php
@@ -161,10 +161,16 @@ public function testQuery()
161
$select = $this->getMockBuilder(\Magento\Framework\DB\Select::class)
162
->disableOriginalConstructor()
163
->getMock();
164
- $this->connectionAdapter->expects($this->once())
+
165
+ $this->connectionAdapter->expects($this->exactly(2))
166
->method('select')
167
->willReturn($select);
168
169
+ $this->connectionAdapter->expects($this->once())
170
+ ->method('fetchOne')
171
+ ->with($select)
172
+ ->willReturn($selectResult['total']);
173
174
$table = $this->getMockBuilder(\Magento\Framework\DB\Ddl\Table::class)
175
176
0 commit comments