userExpLevel test: use $tables from function under tests
authorStephane Bisson <sbisson@wikimedia.org>
Fri, 21 Apr 2017 16:15:40 +0000 (12:15 -0400)
committerStephane Bisson <sbisson@wikimedia.org>
Fri, 21 Apr 2017 16:15:40 +0000 (12:15 -0400)
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

tests/phpunit/includes/specialpage/ChangesListSpecialPageTest.php

index b536c22..d9538a7 100644 (file)
@@ -512,7 +512,7 @@ class ChangesListSpecialPageTest extends AbstractChangesListSpecialPageTestCase
                );
 
                $result = wfGetDB( DB_MASTER )->select(
-                       'user',
+                       $tables,
                        'user_name',
                        array_filter( $conds ) + [ 'user_email' => 'ut' ]
                );