1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-10-15 19:42:08 +00:00

Fix tests for all

This commit is contained in:
Jeremy Benoist 2015-09-28 20:26:37 +02:00
parent 159986c4fb
commit 02d17813a1
3 changed files with 14 additions and 29 deletions

View file

@ -162,24 +162,6 @@ class EntryRepository extends EntityRepository
return $languages;
}
/**
* Used only in test case to get the right entry associated to the right user
*
* @param string $username
*
* @return Entry
*/
public function findOneByUsernameAndNotStarred($username)
{
return $this->createQueryBuilder('e')
->leftJoin('e.user', 'u')
->where('u.username = :username')->setParameter('username', $username)
->andWhere('e.isStarred = false')
->setMaxResults(1)
->getQuery()
->getSingleResult();
}
/**
* Used only in test case to get the right entry associated to the right user
*