ChangesListSpecialPageTest: Use Database::makeList() instead of makeshift DIY code
authorRoan Kattouw <roan.kattouw@gmail.com>
Thu, 5 Apr 2018 18:10:58 +0000 (11:10 -0700)
committerRoan Kattouw <roan.kattouw@gmail.com>
Fri, 6 Apr 2018 17:20:32 +0000 (10:20 -0700)
commite8cc3567862899cfd0f53784cf3da0b0120f7772
tree696ae1e00272aa04f6ec9f936a51a3f9c2b9ecf0
parent48a6894abbb26e5e93437bf30cf0fee54db052a4
ChangesListSpecialPageTest: Use Database::makeList() instead of makeshift DIY code

Otherwise these tests break completely when you add conditions like
$conds['rc_patrolled'] = [ 1, 2 ];
That maps to 'rc_patrolled IN (1,2)', but the DIY code in
normalizeCondition() was too simplistic to generate that.

Change-Id: I449317185f98e20b3e17f1b13610d872ae828171
includes/specialpage/ChangesListSpecialPage.php
tests/phpunit/includes/specialpage/ChangesListSpecialPageTest.php