Index: trunk/phase3/maintenance/tests/phpunit/includes/api/ApiUploadTest.php |
— | — | @@ -18,6 +18,7 @@ |
19 | 19 | // TODO: port the other Upload tests, and other API tests to this framework |
20 | 20 | |
21 | 21 | require_once( dirname( __FILE__ ) . '/RandomImageGenerator.php' ); |
| 22 | +require_once( dirname( __FILE__ ) . '/../../../../../includes/User.php' ); |
22 | 23 | |
23 | 24 | /* Wraps the user object, so we can also retain full access to properties like password if we log in via the API */ |
24 | 25 | class ApiTestUser { |
— | — | @@ -28,8 +29,6 @@ |
29 | 30 | public $user; |
30 | 31 | |
31 | 32 | function __construct( $username, $realname = 'Real Name', $email = 'sample@sample.com', $groups = array() ) { |
32 | | - global $wgMinimalPasswordLength; |
33 | | - |
34 | 33 | $this->username = $username; |
35 | 34 | $this->realname = $realname; |
36 | 35 | $this->email = $email; |
— | — | @@ -83,7 +82,7 @@ |
84 | 83 | public static $users; |
85 | 84 | |
86 | 85 | function setUp() { |
87 | | - global $wgServer, $wgContLang, $wgAuth, $wgMemc, $wgRequest, $wgUser; |
| 86 | + global $wgContLang, $wgAuth, $wgMemc, $wgRequest, $wgUser; |
88 | 87 | |
89 | 88 | $wgMemc = new FakeMemCachedClient(); |
90 | 89 | $wgContLang = Language::factory( 'en' ); |