mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-10 03:23:19 +00:00
16 lines
580 B
PHP
16 lines
580 B
PHP
<?php
|
|
|
|
class ValidationParticipantRepositoryTest extends \PhraseanetAuthenticatedTestCase
|
|
{
|
|
|
|
public function testFindNotConfirmedAndNotRemindedParticipants()
|
|
{
|
|
$em = self::$DI['app']['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));
|
|
}
|
|
}
|