From: Florent Bruneau Date: Sun, 9 May 2010 20:01:22 +0000 (+0200) Subject: Tests UFO_Birthday, UFO_ProfileUpdate and UFO_Registration. X-Git-Tag: xorg/1.0.0~257 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=7c9474af23ed44f6cfddcb5b8dd970a5893aa0d9;p=platal.git Tests UFO_Birthday, UFO_ProfileUpdate and UFO_Registration. Signed-off-by: Florent Bruneau --- diff --git a/ut/userfiltertest.php b/ut/userfiltertest.php index dd608fc..d2bc062 100644 --- a/ut/userfiltertest.php +++ b/ut/userfiltertest.php @@ -592,6 +592,18 @@ class UserFilterTest extends PlTestCase array(self::buildProfileQuery('WHERE p.deathdate IS NOT NULL ORDER BY p.deathdate DESC, p.pid'), array(new UFO_Death(true), new UFO_Pid()), new UFC_Dead()), + array(self::buildProfileQuery('ORDER BY p.next_birthday, p.pid'), + array(new UFO_Birthday(), new UFO_Pid())), + array(self::buildProfileQuery('ORDER BY p.next_birthday DESC, p.pid'), + array(new UFO_Birthday(true), new UFO_Pid())), + array(self::buildProfileQuery('ORDER BY p.last_change, p.pid'), + array(new UFO_ProfileUpdate(), new UFO_Pid())), + array(self::buildProfileQuery('ORDER BY p.last_change DESC, p.pid'), + array(new UFO_ProfileUpdate(true), new UFO_Pid())), + array(self::buildAccountQuery('ORDER BY a.registration_date, a.uid'), + array(new UFO_Registration(), new UFO_Uid())), + array(self::buildAccountQuery('ORDER BY a.registration_date DESC, a.uid'), + array(new UFO_Registration(true), new UFO_Uid())), ); }