mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 06:53:15 +00:00
fix test
This commit is contained in:
@@ -12,8 +12,7 @@ class ValidationParticipantRepositoryTest extends \PhraseanetTestCase
|
||||
$em = self::$DI['app']['orm.em'];
|
||||
$repo = $em->getRepository('Phraseanet:ValidationParticipant');
|
||||
/* @var $repo Alchemy\Phrasea\Model\Repositories\ValidationParticipantRepository */
|
||||
$expireDate = new \DateTime('+8 days');
|
||||
$participants = $repo->findNotConfirmedAndNotRemindedParticipantsByExpireDate($expireDate);
|
||||
$participants = $repo->findNotConfirmedAndNotRemindedParticipantsByTimeLeftPercent(20, new \DateTime('+7 days'));
|
||||
$this->assertEquals(3, count($participants));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user