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