當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。