public function __construct($name = null, array $data = array(), $dataName = '') { parent::__construct($name, $data, $dataName); $this->tablesUsed[] = 'page'; $this->tablesUsed[] = 'revision'; $this->tablesUsed[] = 'pagelinks'; }
/** * @param $name string The name of the test case * @param $data array Any parameters read from a dataProvider * @param $dataName string|int The name or index of the data set */ public function __construct($name = null, array $data = array(), $dataName = '') { //Just in case you got here without running the configuration... global $wgDonationInterfaceTestMode; $wgDonationInterfaceTestMode = true; parent::__construct($name, $data, $dataName); }
function __construct($name = null, array $data = array(), $dataName = '', $engineName = null) { if ($engineName === null) { $engineName = self::$staticEngineName; } $this->engineName = $engineName; parent::__construct($name, $data, $dataName); }
public function __construct() { parent::__construct(); $this->title = Title::newFromText('SomeTitle'); $this->target = Title::newFromText('TestTarget'); $this->user = User::newFromName('UserName'); $this->user_comment = '<User comment about action>'; $this->context = RequestContext::newExtraneousContext($this->title); }
/** * Initialize all query page objects */ function __construct() { parent::__construct(); foreach (QueryPage::getPages() as $page) { $class = $page[0]; if (!in_array($class, $this->manualTest)) { $this->queryPages[$class] = new $class(); } } }
function __construct() { parent::__construct(); $this->prefUsers['noemail'] = new User(); $this->prefUsers['notauth'] = new User(); $this->prefUsers['notauth']->setEmail('*****@*****.**'); $this->prefUsers['auth'] = new User(); $this->prefUsers['auth']->setEmail('*****@*****.**'); $this->prefUsers['auth']->setEmailAuthenticationTimestamp(1330946623); $this->context = new RequestContext(); $this->context->setTitle(Title::newFromText('PreferencesTest')); }
function __construct() { parent::__construct(); global $wgEnableEmail; $this->prefUsers['noemail'] = new User(); $this->prefUsers['notauth'] = new User(); $this->prefUsers['notauth']->setEmail('*****@*****.**'); $this->prefUsers['auth'] = new User(); $this->prefUsers['auth']->setEmail('*****@*****.**'); $this->prefUsers['auth']->setEmailAuthenticationTimestamp(1330946623); $this->context = new RequestContext(); $this->context->setTitle(Title::newFromText('PreferencesTest')); //some tests depends on email setting $wgEnableEmail = true; }
function __construct($name = null, array $data = array(), $dataName = '') { parent::__construct($name, $data, $dataName); $this->tablesUsed = array_merge($this->tablesUsed, array('interwiki', 'page_props', 'pagelinks', 'categorylinks', 'langlinks', 'externallinks', 'imagelinks', 'templatelinks', 'iwlinks')); }
function __construct($name = null, array $data = [], $dataName = '') { parent::__construct($name, $data, $dataName); $this->tablesUsed[] = 'job'; }
function __construct($name = null, array $data = [], $dataName = '') { parent::__construct($name, $data, $dataName); $this->tablesUsed = array_merge($this->tablesUsed, ['page', 'revision', 'text', 'recentchanges', 'logging', 'page_props', 'pagelinks', 'categorylinks', 'langlinks', 'externallinks', 'imagelinks', 'templatelinks', 'iwlinks']); }
public function __construct($name = null, $data = array(), $dataName = '') { parent::__construct($name, $data, $dataName); $this->tablesUsed[] = 'wb_entity_per_page'; }
public function __construct($name = null, $data = array(), $dataName = '') { parent::__construct($name, $data, $dataName); $this->helper = new PropertyInfoStoreTestHelper($this, array($this, 'newCachingPropertyInfoStore')); }
public function __construct($name = null, array $data = array(), $dataName = '') { $this->tablesUsed = array_merge($this->tablesUsed, self::$centralauthTables); parent::__construct($name, $data, $dataName); }
/** * @param string $file * @param ResourceLoaderModule $module The ResourceLoader module that * contains the file */ public function __construct($file, ResourceLoaderModule $module) { parent::__construct('testLessFileCompilation'); $this->file = $file; $this->module = $module; }
public function __construct($suite, $test = null) { parent::__construct(); $this->test = $test; $this->suite = $suite; }