本文整理汇总了PHP中MediaWikiTestCase::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP MediaWikiTestCase::__construct方法的具体用法?PHP MediaWikiTestCase::__construct怎么用?PHP MediaWikiTestCase::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MediaWikiTestCase
的用法示例。
在下文中一共展示了MediaWikiTestCase::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct($name = null, array $data = array(), $dataName = '')
{
parent::__construct($name, $data, $dataName);
$this->tablesUsed[] = 'page';
$this->tablesUsed[] = 'revision';
$this->tablesUsed[] = 'pagelinks';
}
示例2: __construct
/**
* @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);
}
示例3: array
function __construct($name = null, array $data = array(), $dataName = '', $engineName = null)
{
if ($engineName === null) {
$engineName = self::$staticEngineName;
}
$this->engineName = $engineName;
parent::__construct($name, $data, $dataName);
}
示例4: __construct
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);
}
示例5: foreach
/**
* 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();
}
}
}
示例6: User
function __construct()
{
parent::__construct();
$this->prefUsers['noemail'] = new User();
$this->prefUsers['notauth'] = new User();
$this->prefUsers['notauth']->setEmail('noauth@example.org');
$this->prefUsers['auth'] = new User();
$this->prefUsers['auth']->setEmail('noauth@example.org');
$this->prefUsers['auth']->setEmailAuthenticationTimestamp(1330946623);
$this->context = new RequestContext();
$this->context->setTitle(Title::newFromText('PreferencesTest'));
}
示例7: User
function __construct()
{
parent::__construct();
global $wgEnableEmail;
$this->prefUsers['noemail'] = new User();
$this->prefUsers['notauth'] = new User();
$this->prefUsers['notauth']->setEmail('noauth@example.org');
$this->prefUsers['auth'] = new User();
$this->prefUsers['auth']->setEmail('noauth@example.org');
$this->prefUsers['auth']->setEmailAuthenticationTimestamp(1330946623);
$this->context = new RequestContext();
$this->context->setTitle(Title::newFromText('PreferencesTest'));
//some tests depends on email setting
$wgEnableEmail = true;
}
示例8: array
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'));
}
示例9:
function __construct($name = null, array $data = [], $dataName = '')
{
parent::__construct($name, $data, $dataName);
$this->tablesUsed[] = 'job';
}
示例10:
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']);
}
示例11: __construct
public function __construct($name = null, $data = array(), $dataName = '')
{
parent::__construct($name, $data, $dataName);
$this->tablesUsed[] = 'wb_entity_per_page';
}
示例12: __construct
public function __construct($name = null, $data = array(), $dataName = '')
{
parent::__construct($name, $data, $dataName);
$this->helper = new PropertyInfoStoreTestHelper($this, array($this, 'newCachingPropertyInfoStore'));
}
示例13: __construct
public function __construct($name = null, array $data = array(), $dataName = '')
{
$this->tablesUsed = array_merge($this->tablesUsed, self::$centralauthTables);
parent::__construct($name, $data, $dataName);
}
开发者ID:NDKilla,项目名称:mediawiki-extensions-CentralAuth,代码行数:5,代码来源:CentralAuthTestCaseUsingDatabase.php
示例14: __construct
/**
* @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;
}
示例15: __construct
public function __construct($suite, $test = null)
{
parent::__construct();
$this->test = $test;
$this->suite = $suite;
}