From: Raphaël Barrois Date: Tue, 27 Apr 2010 11:53:26 +0000 (+0200) Subject: Update userfiltertest since getTotalCOunt is now fixed X-Git-Tag: xorg/1.0.0~290 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=af7464023c21ff2d8e8101b37a2dc5de3e3242d8;p=platal.git Update userfiltertest since getTotalCOunt is now fixed Signed-off-by: Raphaël Barrois --- diff --git a/ut/userfiltertest.php b/ut/userfiltertest.php index 1a97504..b4fbd79 100644 --- a/ut/userfiltertest.php +++ b/ut/userfiltertest.php @@ -92,6 +92,9 @@ class UserFilterTest extends PlTestCase /** * @dataProvider simpleUserProvider + * @param $query A MySQL query + * @param $cond The UFC to test + * @param $expcount The expected number of results (-1 if that number is unknown) */ public function testSimpleUser($query, $cond, $expcount = null) { @@ -112,10 +115,7 @@ class UserFilterTest extends PlTestCase sort($ids); $uf = new UserFilter($cond); - /* XXX: API issue, there's no guarantee getTotalCount() - returns the number of users. - */ - //$this->assertEquals($count, $uf->getTotalCount()); + $this->assertEquals($count, $uf->getTotalUserCount()); $got = $uf->getUIDs(); $this->assertEquals($count, count($got)); sort($got);