From af7464023c21ff2d8e8101b37a2dc5de3e3242d8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Barrois?= Date: Tue, 27 Apr 2010 13:53:26 +0200 Subject: [PATCH] Update userfiltertest since getTotalCOunt is now fixed MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Raphaël Barrois --- ut/userfiltertest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); -- 2.1.4