Skip to content

Commit

Permalink
ENGCOM-4481: Unit test fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
p-bystritsky committed Mar 13, 2019
1 parent a546e14 commit 9dc26cc
Showing 1 changed file with 7 additions and 1 deletion.
Expand Up @@ -161,10 +161,16 @@ public function testQuery()
$select = $this->getMockBuilder(\Magento\Framework\DB\Select::class)
->disableOriginalConstructor()
->getMock();
$this->connectionAdapter->expects($this->once())

$this->connectionAdapter->expects($this->exactly(2))
->method('select')
->willReturn($select);

$this->connectionAdapter->expects($this->once())
->method('fetchOne')
->with($select)
->willReturn($selectResult['total']);

$table = $this->getMockBuilder(\Magento\Framework\DB\Ddl\Table::class)
->disableOriginalConstructor()
->getMock();
Expand Down

0 comments on commit 9dc26cc

Please sign in to comment.