Fix tests

This commit is contained in:
Jeremy Benoist
2017-07-03 07:30:54 +02:00
parent f808b01692
commit 38520658ad
9 changed files with 34 additions and 39 deletions

View File

@ -325,7 +325,7 @@ class EntryRepository extends EntityRepository
->where('e.user=:userId')->setParameter('userId', $userId)
;
return $qb->getQuery()->getSingleScalarResult();
return (int) $qb->getQuery()->getSingleScalarResult();
}
/**
@ -345,7 +345,7 @@ class EntryRepository extends EntityRepository
->andWhere('t.id=:tagId')->setParameter('tagId', $tagId)
;
return $qb->getQuery()->getSingleScalarResult();
return (int) $qb->getQuery()->getSingleScalarResult();
}
/**