diff options
author | Robin Appelman <robin@icewind.nl> | 2018-01-12 13:44:30 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2018-01-12 13:57:55 +0100 |
commit | 42b3aa3a0a9098a2810ded6f0e0e359a3c9e3337 (patch) | |
tree | 464fb00ca8d575c81775dd4d4600d7fb44cee737 /tests | |
parent | aad01894e38ff77781934c16b75dac43d49ec74a (diff) | |
download | nextcloud-server-42b3aa3a0a9098a2810ded6f0e0e359a3c9e3337.tar.gz nextcloud-server-42b3aa3a0a9098a2810ded6f0e0e359a3c9e3337.zip |
reuse query builder
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/DB/QueryBuilder/ExpressionBuilderTest.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/lib/DB/QueryBuilder/ExpressionBuilderTest.php b/tests/lib/DB/QueryBuilder/ExpressionBuilderTest.php index ff58b3f6e0b..1bf42d230fe 100644 --- a/tests/lib/DB/QueryBuilder/ExpressionBuilderTest.php +++ b/tests/lib/DB/QueryBuilder/ExpressionBuilderTest.php @@ -48,7 +48,9 @@ class ExpressionBuilderTest extends TestCase { $this->connection = \OC::$server->getDatabaseConnection(); - $this->expressionBuilder = new ExpressionBuilder($this->connection); + $queryBuilder = $this->createMock(IQueryBuilder::class); + + $this->expressionBuilder = new ExpressionBuilder($this->connection, $queryBuilder); $this->doctrineExpressionBuilder = new DoctrineExpressionBuilder($this->connection); } |