当前位置: 首页>>代码示例>>PHP>>正文


PHP MediaWikiTestCase::__construct方法代码示例

本文整理汇总了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';
 }
开发者ID:biribogos,项目名称:wikihow-src,代码行数:7,代码来源:RefreshLinksPartitionTest.php

示例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);
 }
开发者ID:wikimedia,项目名称:wikimedia-fundraising-crm-vendor,代码行数:12,代码来源:DonationInterfaceTestCase.php

示例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);
 }
开发者ID:Tjorriemorrie,项目名称:app,代码行数:8,代码来源:LuaEngineTestBase.php

示例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);
 }
开发者ID:natebrunette,项目名称:sphericalcow,代码行数:9,代码来源:RecentChangeTest.php

示例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();
         }
     }
 }
开发者ID:jpena88,项目名称:mediawiki-dokku-deploy,代码行数:13,代码来源:QueryAllSpecialPagesTest.php

示例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'));
 }
开发者ID:mangowi,项目名称:mediawiki,代码行数:12,代码来源:PreferencesTest.php

示例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;
 }
开发者ID:Jobava,项目名称:diacritice-meta-repo,代码行数:15,代码来源:PreferencesTest.php

示例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'));
 }
开发者ID:Jobava,项目名称:diacritice-meta-repo,代码行数:5,代码来源:LinksUpdateTest.php

示例9:

 function __construct($name = null, array $data = [], $dataName = '')
 {
     parent::__construct($name, $data, $dataName);
     $this->tablesUsed[] = 'job';
 }
开发者ID:claudinec,项目名称:galan-wiki,代码行数:5,代码来源:JobQueueTest.php

示例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']);
 }
开发者ID:claudinec,项目名称:galan-wiki,代码行数:5,代码来源:RevisionStorageTest.php

示例11: __construct

 public function __construct($name = null, $data = array(), $dataName = '')
 {
     parent::__construct($name, $data, $dataName);
     $this->tablesUsed[] = 'wb_entity_per_page';
 }
开发者ID:Benestar,项目名称:mediawiki-extensions-Wikibase,代码行数:5,代码来源:EntityPerPageTableTest.php

示例12: __construct

 public function __construct($name = null, $data = array(), $dataName = '')
 {
     parent::__construct($name, $data, $dataName);
     $this->helper = new PropertyInfoStoreTestHelper($this, array($this, 'newCachingPropertyInfoStore'));
 }
开发者ID:Benestar,项目名称:mediawiki-extensions-Wikibase,代码行数:5,代码来源:CachingPropertyInfoStoreTest.php

示例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;
 }
开发者ID:Habatchii,项目名称:wikibase-for-mediawiki,代码行数:11,代码来源:LessFileCompilationTest.php

示例15: __construct

 public function __construct($suite, $test = null)
 {
     parent::__construct();
     $this->test = $test;
     $this->suite = $suite;
 }
开发者ID:eFFemeer,项目名称:seizamcore,代码行数:6,代码来源:ParserHelpers.php


注:本文中的MediaWikiTestCase::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。