summaryrefslogtreecommitdiffstats
path: root/tests/lib/Authentication
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/Authentication')
-rw-r--r--tests/lib/Authentication/Token/DefaultTokenMapperTest.php2
-rw-r--r--tests/lib/Authentication/Token/PublicKeyTokenMapperTest.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/Authentication/Token/DefaultTokenMapperTest.php b/tests/lib/Authentication/Token/DefaultTokenMapperTest.php
index bebceba62cf..a40db4461d2 100644
--- a/tests/lib/Authentication/Token/DefaultTokenMapperTest.php
+++ b/tests/lib/Authentication/Token/DefaultTokenMapperTest.php
@@ -93,7 +93,7 @@ class DefaultTokenMapperTest extends TestCase {
private function getNumberOfTokens() {
$qb = $this->dbConnection->getQueryBuilder();
- $result = $qb->select($qb->createFunction('count(*) as `count`'))
+ $result = $qb->select($qb->func()->count('*', 'count'))
->from('authtoken')
->execute()
->fetch();
diff --git a/tests/lib/Authentication/Token/PublicKeyTokenMapperTest.php b/tests/lib/Authentication/Token/PublicKeyTokenMapperTest.php
index 89adef5bb8f..22e1891b51f 100644
--- a/tests/lib/Authentication/Token/PublicKeyTokenMapperTest.php
+++ b/tests/lib/Authentication/Token/PublicKeyTokenMapperTest.php
@@ -117,7 +117,7 @@ class PublicKeyTokenMapperTest extends TestCase {
private function getNumberOfTokens() {
$qb = $this->dbConnection->getQueryBuilder();
- $result = $qb->select($qb->createFunction('count(*) as `count`'))
+ $result = $qb->select($qb->func()->count('*', 'count'))
->from('authtoken')
->execute()
->fetch();