aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/DB/QueryBuilder/ExpressionBuilderTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/DB/QueryBuilder/ExpressionBuilderTest.php')
-rw-r--r--tests/lib/DB/QueryBuilder/ExpressionBuilderTest.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/lib/DB/QueryBuilder/ExpressionBuilderTest.php b/tests/lib/DB/QueryBuilder/ExpressionBuilderTest.php
index b3e9124e7de..2a3a4e9a9c1 100644
--- a/tests/lib/DB/QueryBuilder/ExpressionBuilderTest.php
+++ b/tests/lib/DB/QueryBuilder/ExpressionBuilderTest.php
@@ -40,19 +40,23 @@ class ExpressionBuilderTest extends TestCase {
/** @var DoctrineExpressionBuilder */
protected $doctrineExpressionBuilder;
- /** @var \Doctrine\DBAL\Connection|\OCP\IDBConnection */
+ /** @var \OCP\IDBConnection */
protected $connection;
+ /** @var \Doctrine\DBAL\Connection */
+ protected $internalConnection;
+
protected function setUp(): void {
parent::setUp();
$this->connection = \OC::$server->getDatabaseConnection();
+ $this->internalConnection = \OC::$server->get(\OC\DB\Connection::class);
$queryBuilder = $this->createMock(IQueryBuilder::class);
$this->expressionBuilder = new ExpressionBuilder($this->connection, $queryBuilder);
- $this->doctrineExpressionBuilder = new DoctrineExpressionBuilder($this->connection);
+ $this->doctrineExpressionBuilder = new DoctrineExpressionBuilder($this->internalConnection);
}
public function dataComparison() {