Files
Phraseanet/tests/classes/Doctrine/Repositories/ValidationParticipantRepositoryTest.php
aina esokia e38d143dfe PHRAS-3277
2020-12-03 18:09:03 +03:00

19 lines
582 B
PHP

<?php
/**
* @group functional
* @group legacy
*/
class ValidationParticipantRepositoryTest extends \PhraseanetTestCase
{
public function testFindNotConfirmedAndNotRemindedParticipants()
{
$em = self::$DI['app']['orm.em'];
$repo = $em->getRepository('Phraseanet:ValidationParticipant');
/* @var $repo Alchemy\Phrasea\Model\Repositories\ValidationParticipantRepository */
$participants = $repo->findNotConfirmedAndNotRemindedParticipantsByTimeLeftPercent(20, new \DateTime());
$this->assertEquals(3, count($participants));
}
}