diff options
Diffstat (limited to 'tests/lib/authentication/token/defaulttokenmappertest.php')
-rw-r--r-- | tests/lib/authentication/token/defaulttokenmappertest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/authentication/token/defaulttokenmappertest.php b/tests/lib/authentication/token/defaulttokenmappertest.php index 1f0fdc160e9..b77bf31aa48 100644 --- a/tests/lib/authentication/token/defaulttokenmappertest.php +++ b/tests/lib/authentication/token/defaulttokenmappertest.php @@ -79,12 +79,12 @@ class DefaultTokenMapperTest extends TestCase { private function getNumberOfTokens() { $qb = $this->dbConnection->getQueryBuilder(); - $result = $qb->select($qb->createFunction('COUNT(*)')) + $result = $qb->select($qb->createFunction('count(*) as `count`')) ->from('authtoken') ->execute() ->fetch(); print_r($result); - return (int) $result['COUNT(*)']; + return (int) $result['count']; } public function testInvalidate() { |