mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 20:43:25 +00:00
Use composer as application autoloader
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
class ValidationParticipantRepositoryTest extends PhraseanetPHPUnitAuthenticatedAbstract
|
||||
{
|
||||
|
||||
public function testFindNotConfirmedAndNotRemindedParticipants()
|
||||
{
|
||||
$this->insertOneValidationBasket(array(
|
||||
'expires' => new \DateTime('+1 days')
|
||||
));
|
||||
|
||||
$em = self::$DI['app']['EM'];
|
||||
$repo = $em->getRepository('\Entities\ValidationParticipant');
|
||||
/* @var $repo \Repositories\ValidationParticipantRepository */
|
||||
$expireDate = new \DateTime('+2 days');
|
||||
$participants = $repo->findNotConfirmedAndNotRemindedParticipantsByExpireDate($expireDate);
|
||||
$this->assertEquals(1, count($participants));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user