mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-13 04:53:26 +00:00
19 lines
591 B
PHP
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));
|
|
}
|
|
}
|