X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=ut%2Fuserfiltertest.php;h=0928200722ef34dde120738671abf5defb65cd7d;hb=7f323fd4fedf47d152c4f257929a55449972d14c;hp=cf21bdcb14c0e0c16611988f452a05498c2c729e;hpb=d3f023dd94376f169c0fbe101c55185928f91234;p=platal.git diff --git a/ut/userfiltertest.php b/ut/userfiltertest.php index cf21bdc..0928200 100644 --- a/ut/userfiltertest.php +++ b/ut/userfiltertest.php @@ -424,16 +424,13 @@ class UserFilterTest extends PlTestCase // soundex, !exact array(self::buildProfileQuery('LEFT JOIN search_name AS sn ON (p.pid = sn.pid) WHERE sn.soundex = \'XLNO\''), - new UFC_NameTokens('XLNO', array(), true), -1), + new UFC_NameTokens('xelnor', array(), true), -1), array(self::buildProfileQuery('LEFT JOIN search_name AS sn ON (p.pid = sn.pid) WHERE sn.soundex IN (\'XLNO\', \'BROS\')'), - new UFC_NameTokens(array('XLNO', 'BROS'), array(), true), -1), - array(self::buildProfileQuery('LEFT JOIN search_name AS sn ON (p.pid = sn.pid) - WHERE sn.soundex = \'ZZZZZZ\''), - new UFC_NameTokens('ZZZZZZ', array(), true), 0), + new UFC_NameTokens(array('xelnor', 'barrois'), array(), true), -1), array(self::buildProfileQuery('LEFT JOIN search_name AS sn ON (p.pid = sn.pid) WHERE sn.soundex = \'BROS\' AND FIND_IN_SET(\'public\', sn.flags)'), - new UFC_NameTokens('BROS', UFC_NameTokens::FLAG_PUBLIC, true), -1), + new UFC_NameTokens('barrois', UFC_NameTokens::FLAG_PUBLIC, true), -1), ); /* UFC_Nationality