summaryrefslogtreecommitdiffstats
path: root/tests/Unit/Db/MapperTestUtility.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Unit/Db/MapperTestUtility.php')
-rw-r--r--tests/Unit/Db/MapperTestUtility.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/Unit/Db/MapperTestUtility.php b/tests/Unit/Db/MapperTestUtility.php
index 3aa1d8aed..4a875fde5 100644
--- a/tests/Unit/Db/MapperTestUtility.php
+++ b/tests/Unit/Db/MapperTestUtility.php
@@ -24,6 +24,7 @@
namespace OCA\News\Tests\Unit\Db;
use Doctrine\DBAL\Driver\Statement;
+use OC\DB\QueryBuilder\QueryBuilder;
use OCP\DB\QueryBuilder\IQueryBuilder;
use OCP\IDBConnection;
@@ -74,6 +75,7 @@ abstract class MapperTestUtility extends TestCase
->getMock();
$this->builder = $this->getMockBuilder(IQueryBuilder::class)
+ ->disableOriginalConstructor()
->getMock();
$this->cursor = $this->getMockBuilder(Statement::class)