aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Authentication/Token/DefaultTokenMapperTest.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-11-12 17:43:56 +0100
committerGitHub <noreply@github.com>2018-11-12 17:43:56 +0100
commitfd8eeccb15e1219a2d18fc421e741c315737c55e (patch)
tree55b56592cf40ab4fcc605e45a95d13d79806eb91 /tests/lib/Authentication/Token/DefaultTokenMapperTest.php
parent9e1ec0cf46055dbf08a139124d292eb38b8aebd2 (diff)
parentbb352fb667e87ea0829f1da5f9e85c34bdefe9fa (diff)
downloadnextcloud-server-fd8eeccb15e1219a2d18fc421e741c315737c55e.tar.gz
nextcloud-server-fd8eeccb15e1219a2d18fc421e741c315737c55e.zip
Merge pull request #11942 from nextcloud/techdebt/noid/use-count-function
Use the defined func()->count() instead of manual counting
Diffstat (limited to 'tests/lib/Authentication/Token/DefaultTokenMapperTest.php')
-rw-r--r--tests/lib/Authentication/Token/DefaultTokenMapperTest.php2
1 files changed, 1 insertions, 1 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();