mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-11 12:03:14 +00:00
20 lines
617 B
PHP
20 lines
617 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 */
|
|
$expireDate = new \DateTime('+8 days');
|
|
$participants = $repo->findNotConfirmedAndNotRemindedParticipantsByExpireDate($expireDate);
|
|
$this->assertEquals(3, count($participants));
|
|
}
|
|
}
|