Files
Phraseanet/tests/classes/Doctrine/Repositories/ValidationParticipantRepositoryTest.php
2013-12-18 23:34:06 +01:00

16 lines
600 B
PHP

<?php
class ValidationParticipantRepositoryTest extends \PhraseanetAuthenticatedTestCase
{
public function testFindNotConfirmedAndNotRemindedParticipants()
{
$em = self::$DI['app']['EM'];
$repo = $em->getRepository('Alchemy\Phrasea\Model\Entities\ValidationParticipant');
/* @var $repo Alchemy\Phrasea\Model\Repositories\ValidationParticipantRepository */
$expireDate = new \DateTime('+8 days');
$participants = $repo->findNotConfirmedAndNotRemindedParticipantsByExpireDate($expireDate);
$this->assertEquals(3, count($participants));
}
}