From: Stephane Bisson Date: Fri, 21 Apr 2017 16:15:40 +0000 (-0400) Subject: userExpLevel test: use $tables from function under tests X-Git-Tag: 1.31.0-rc.0~3372^2 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=685c9e15b506d9fc4172c438fd70bf1577ba37b2;p=lhc%2Fweb%2Fwiklou.git userExpLevel test: use $tables from function under tests This is to make sure that the function under tests correctly adds 'user' to the $tables variable where it adds conditions against this table. Bug: T161041 Change-Id: I0e9e97e4a24bdf6f488bc1b1e758904496c7efe8 --- diff --git a/tests/phpunit/includes/specialpage/ChangesListSpecialPageTest.php b/tests/phpunit/includes/specialpage/ChangesListSpecialPageTest.php index b536c22f2e..d9538a73f6 100644 --- a/tests/phpunit/includes/specialpage/ChangesListSpecialPageTest.php +++ b/tests/phpunit/includes/specialpage/ChangesListSpecialPageTest.php @@ -512,7 +512,7 @@ class ChangesListSpecialPageTest extends AbstractChangesListSpecialPageTestCase ); $result = wfGetDB( DB_MASTER )->select( - 'user', + $tables, 'user_name', array_filter( $conds ) + [ 'user_email' => 'ut' ] );