diff --git a/test/Adapter/DbSelectTest.php b/test/Adapter/DbSelectTest.php index a2eb20d7..3ea03f44 100644 --- a/test/Adapter/DbSelectTest.php +++ b/test/Adapter/DbSelectTest.php @@ -66,6 +66,15 @@ public function setUp() ->with($this->isInstanceOf('Laminas\Db\Sql\Select')) ->will($this->returnValue($this->mockStatement)); + $this->mockAdapter = $this->getMockBuilder('Laminas\Db\Adapter\AdapterInterface')->getMock(); + $this->mockAdapter->expects($this->any()) + ->method('getDriver') + ->will($this->returnValue($mockDriver)); + $this->mockSql + ->expects($this->any()) + ->method('getAdapter') + ->will($this->returnValue($this->mockAdapter)); + $this->mockSelect = $this->createMock('Laminas\Db\Sql\Select'); $this->mockSelectCount = $this->createMock('Laminas\Db\Sql\Select'); $this->dbSelect = new DbSelect($this->mockSelect, $this->mockSql);