// TODO: port the other Upload tests, and other API tests to this framework
require_once( dirname( __FILE__ ) . '/RandomImageGenerator.php' );
+require_once( dirname( __FILE__ ) . '/../../../../../includes/User.php' );
/* Wraps the user object, so we can also retain full access to properties like password if we log in via the API */
class ApiTestUser {
public $user;
function __construct( $username, $realname = 'Real Name', $email = 'sample@sample.com', $groups = array() ) {
- global $wgMinimalPasswordLength;
-
$this->username = $username;
$this->realname = $realname;
$this->email = $email;
public static $users;
function setUp() {
- global $wgServer, $wgContLang, $wgAuth, $wgMemc, $wgRequest, $wgUser;
+ global $wgContLang, $wgAuth, $wgMemc, $wgRequest, $wgUser;
$wgMemc = new FakeMemCachedClient();
$wgContLang = Language::factory( 'en' );