Files
Phraseanet/tests/classes/Doctrine/Repositories/ValidationParticipantRepositoryTest.php
aina esokia 36bcd5dad4 fix test
2020-12-02 18:10:23 +03:00

19 lines
591 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('+7 days'));
$this->assertEquals(3, count($participants));
}
}