*/
public function findAllByUrlAndUserId($url, $userId)
{
- $res = $this->createQueryBuilder('e')
+ return $this->createQueryBuilder('e')
->where('e.url = :url')->setParameter('url', urldecode($url))
->andWhere('e.user = :user_id')->setParameter('user_id', $userId)
->getQuery()
->getResult();
-
- return $res;
}
}
class CleanDuplicatesCommandTest extends WallabagCoreTestCase
{
- public function testTagAll()
+ public function testRunCleanDuplicates()
{
$application = new Application($this->getClient()->getKernel());
$application->add(new CleanDuplicatesCommand());
$this->assertContains('Finished cleaning. 0 duplicates found in total', $tester->getDisplay());
}
- public function testRunTagAllCommandWithBadUsername()
+ public function testRunCleanDuplicatesCommandWithBadUsername()
{
$application = new Application($this->getClient()->getKernel());
$application->add(new CleanDuplicatesCommand());
$this->assertContains('User "unknown" not found', $tester->getDisplay());
}
- public function testRunTagAllCommandForUser()
+ public function testRunCleanDuplicatesCommandForUser()
{
$application = new Application($this->getClient()->getKernel());
$application->add(new CleanDuplicatesCommand());