wiki.techinc.nl/tests/phpunit/includes
Aaron Schulz 8f20122c18 rdbms: fix active GTID filtering in DatabaseMysqlBase
In masterPosWait(), only $pos will have the known active domain/server set
since it usually comes from getMasterPos(). However, the reference position,
from getReplicaDB(), does not have the active domains set since querying
gtid_domain_id on the replica would be incorrect and getting a connection
to the master could be expensive.

Remove obsolete hacks for jobs that used to store master positions.

Also, use the regular Database::query() method for stylistic consistency.

Bug: T224422
Change-Id: I41bbb9f337e46451aa17788dbd446db4a213a5a7
2019-09-25 11:59:05 +00:00
..
actions Replace User::isAllowed with PermissionManager. 2019-08-20 14:43:51 -07:00
api Merge "tests: Prefer assertSame() when comparing the integer 0" 2019-09-20 15:33:02 +00:00
auth tests: Prefer assertSame() when comparing the integer 0 2019-09-19 15:35:23 +00:00
block tests: Prefer assertSame() when comparing the integer 0 2019-09-19 15:35:23 +00:00
cache tests: Prefer assertSame() when comparing the integer 0 2019-09-19 15:35:23 +00:00
changes Merge "tests: Prefer PHPUnit's assertSame() when comparing empty strings" 2019-09-20 15:55:08 +00:00
changetags ChangeTags: turn private getPrevTags() into public getTags() 2019-08-07 15:19:20 +02:00
collation Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
config Test that classes use all their ServiceOptions 2019-08-19 20:42:28 +03:00
content tests: Prefer PHPUnit's assertSame() when comparing empty strings 2019-09-20 15:27:58 +00:00
context tests: Prefer assertSame() when comparing the integer 0 2019-09-19 15:35:23 +00:00
db Merge "tests: Prefer PHPUnit's assertSame() when comparing empty strings" 2019-09-20 15:55:08 +00:00
debug Load GlobalFunctions.php to tests/phpunit/bootstrap.php 2019-07-14 01:28:07 +02:00
deferred tests: Prefer assertSame() when comparing the integer 0 2019-09-19 15:35:23 +00:00
diff phpunit: Repair GLOBALS reset in MediaWikiUnitTestCase 2019-09-02 20:58:34 +01:00
editpage Mass conversion to NamespaceInfo 2019-05-07 22:44:56 +02:00
exception Move trivially compatible tests to the unit tests suite 2019-06-30 15:23:53 +02:00
externalstore externalstore: unbreak writes to non-default storage clusters due to isReadOnly() 2019-07-16 22:08:00 -07:00
filebackend tests: Prefer assertSame() when comparing the integer 0 2019-09-19 15:35:23 +00:00
filerepo tests: Prefer PHPUnit's assertSame() when comparing empty strings 2019-09-20 15:27:58 +00:00
GlobalFunctions Remove unneeded overrideMwServices/resetServices 2019-08-29 14:26:18 +03:00
htmlform Load GlobalFunctions.php to tests/phpunit/bootstrap.php 2019-07-14 01:28:07 +02:00
http Merge "tests: Prefer PHPUnit's assertSame() when comparing empty strings" 2019-09-20 15:55:08 +00:00
import Include change tags in revision import structure 2019-09-03 21:14:16 +02:00
interwiki Remove unneeded overrideMwServices/resetServices 2019-08-29 14:26:18 +03:00
jobqueue tests: Prefer assertSame() when comparing the integer 0 2019-09-19 15:35:23 +00:00
language language: Move ConverterRule to includes/ and add test case 2019-08-26 12:32:14 +01:00
libs rdbms: fix active GTID filtering in DatabaseMysqlBase 2019-09-25 11:59:05 +00:00
linkeddata linkeddata: Simplity PageDataRequestHandler test setup 2019-04-01 14:20:19 +00:00
linker tests: Prefer PHPUnit's assertSame() when comparing empty strings 2019-09-20 15:27:58 +00:00
logging Mostly drop old pre-actor user schemas 2019-09-09 11:38:36 -04:00
mail
media tests: Prefer assertSame() when comparing the integer 0 2019-09-19 15:35:23 +00:00
Message lib/Message: Support MessageValue as a parameter 2019-08-30 15:14:37 -04:00
Navigation Refactor buildPrevNextNavigation 2019-06-05 19:32:27 -04:00
objectcache Remove unneeded overrideMwServices/resetServices 2019-08-29 14:26:18 +03:00
page tests: Prefer assertSame() when comparing the integer 0 2019-09-19 15:35:23 +00:00
pager
parser phpunit: Repair GLOBALS reset in MediaWikiUnitTestCase 2019-09-02 20:58:34 +01:00
password Remove hard deprecation of PasswordPolicyChecks::checkPopularPasswordBlacklist 2019-08-27 17:53:27 +01:00
Permissions Merge "Move User::getAllRights to PermissionManager." 2019-08-29 21:00:23 +00:00
poolcounter Add missing newline between <?php and namespace/use section 2019-06-03 13:36:48 +00:00
preferences Break PreferencesFormOOUI->PermissionManager dependency 2019-09-17 08:34:53 -07:00
rcfeed Clear test user registry between tests 2019-08-14 10:27:21 +03:00
registration registration: Avoid redundant LBYL check in ExtensionRegistry::queue() 2019-09-01 18:28:41 +00:00
resourceloader resourceloader: Convert ImageModule test to stricter unit test 2019-09-24 23:17:31 +00:00
Rest Use UserIdentity instead of User in REST 2019-09-18 14:45:01 +10:00
Revision Use BlobStore::getBlobBatch for RevisionStore::newRevisionsFromBatch 2019-09-19 10:19:11 -07:00
search tests: Prefer assertSame() when comparing the integer 0 2019-09-19 15:35:23 +00:00
session Add a dedicated Exception for SessionOverflow 2019-09-10 08:27:29 +00:00
shell tests: Prefer assertSame() when comparing the integer 0 2019-09-19 15:35:23 +00:00
site Merge "tests: Prefer PHPUnit's assertSame() when comparing empty strings" 2019-09-20 15:55:08 +00:00
skins Move trivially compatible tests to the unit tests suite 2019-06-30 15:23:53 +02:00
sparql Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
specialpage Fix typo in ChangesListSpecialPageTest 2019-09-09 11:38:36 -04:00
specials tests: Make SpecialPageDataTest independend from the language 2019-09-19 12:53:08 +02:00
Storage tests: Prefer assertSame() when comparing the integer 0 2019-09-19 15:35:23 +00:00
title Remove unneeded overrideMwServices/resetServices 2019-08-29 14:26:18 +03:00
upload Relax HTML sniffing checks on image upload 2019-06-07 14:21:00 -07:00
user tests: Prefer assertSame() when comparing the integer 0 2019-09-19 15:35:23 +00:00
utils phpunit: Repair GLOBALS reset in MediaWikiUnitTestCase 2019-09-02 20:58:34 +01:00
watcheditem tests: Prefer assertSame() when comparing the integer 0 2019-09-19 15:35:23 +00:00
ActorMigrationTest.php Mostly drop old pre-actor user schemas 2019-09-09 11:38:36 -04:00
ActorMigrationTest.sql Mostly drop old pre-actor user schemas 2019-09-09 11:38:36 -04:00
AutoLoaderTest.php
AutopromoteTest.php
CategoryTest.php Avoid hitting DB in Category getters when they have the required info 2019-04-04 12:40:14 -07:00
CommentStoreCommentTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
CommentStoreTest.php Add missing use for IMaintainableDatabase 2019-02-20 20:57:18 +01:00
CommentStoreTest.sql Mostly drop old comment schemas 2019-02-07 16:59:27 +11:00
ContentSecurityPolicyTest.php Remove unneeded overrideMwServices/resetServices 2019-08-29 14:26:18 +03:00
DeprecatedGlobalTest.php
DiffHistoryBlobTest.php Remove comments literally documenting unit tests being unit tests 2019-02-19 15:18:12 +01:00
EditPageTest.php tests: Prefer assertSame() when comparing the integer 0 2019-09-19 15:35:23 +00:00
ExportTest.php
ExtraParserTest.php
FauxRequestTest.php tests: Prefer PHPUnit's assertSame() when comparing empty strings 2019-09-20 15:27:58 +00:00
GitInfoTest.php
HooksTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
HtmlTest.php Replace infobox usages and extend successbox, warningbox and errorbox 2019-09-24 16:29:32 -07:00
LinkerTest.php tests: Prefer assertSame() when comparing the integer 0 2019-09-19 15:35:23 +00:00
LinkFilterTest.php
ListToggleTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
MagicWordFactoryTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
MediaWikiServicesTest.php tests: Prefer assertSame() when comparing the integer 0 2019-09-19 15:35:23 +00:00
MediaWikiTest.php Add @coversNothing for left over tests and enable sniff 2019-02-02 21:53:40 -08:00
MediaWikiVersionFetcherTest.php Unset all globals unneeded for unit tests, assert correct directory 2019-07-09 14:09:29 -04:00
MergeHistoryTest.php Don't use new MCR schema without using DB 2019-08-13 17:05:24 +03:00
MessageTest.php Remove unneeded overrideMwServices/resetServices 2019-08-29 14:26:18 +03:00
MovePageTest.php Merge "createNoOpMock() method for PHPUnit tests" 2019-08-29 18:15:43 +00:00
MultiHttpClientTest.php Revert "Convert MultiHttpClient to use Guzzle" 2019-03-06 09:53:32 +01:00
MWTimestampTest.php
OutputPageTest.php tests: Prefer assertSame() when comparing the integer 0 2019-09-19 15:35:23 +00:00
PagePropsTest.php Mass conversion to NamespaceInfo 2019-05-07 22:44:56 +02:00
PrefixSearchTest.php Remove unneeded overrideMwServices/resetServices 2019-08-29 14:26:18 +03:00
ReadOnlyModeTest.php Don't pass Config to service constructors 2019-05-02 11:33:56 +03:00
RevisionDbTestBase.php Mostly drop old pre-actor user schemas 2019-09-09 11:38:36 -04:00
RevisionMcrDbTest.php
RevisionMcrReadNewDbTest.php Normalize use of "INNER JOIN" to "JOIN" in database queries 2019-03-06 09:17:30 -08:00
RevisionMcrWriteBothDbTest.php Add missing newline between <?php and namespace/use section 2019-06-03 13:36:48 +00:00
RevisionNoContentModelDbTest.php Remove usages of 'text' flag in revision-related getQueryInfo() calls 2019-04-16 15:23:14 -05:00
RevisionPreMcrDbTest.php Remove usages of 'text' flag in revision-related getQueryInfo() calls 2019-04-16 15:23:14 -05:00
RevisionTest.php Storage: Use a more descriptive WAN cache keyclass in 'SqlBlobStore' 2019-09-14 02:22:01 +00:00
RevisionTestModifyableContent.php
RevisionTestModifyableContentHandler.php
SampleTest.php Replace old URLs in SampleTest 2019-07-10 15:00:12 +01:00
SiteStatsTest.php tests: Prefer assertSame() when comparing the integer 0 2019-09-19 15:35:23 +00:00
StatusTest.php Use [...] instead of array(...) in PHP comments and documentation 2019-06-17 21:15:09 +02:00
SystemBlockTest.php Separate Block into AbstractBlock, Block and SystemBlock 2019-05-07 17:36:31 -05:00
TemplateCategoriesTest.php Re-apply: Factors out permissions check from User into PermissionManager service 2019-06-28 13:19:38 -07:00
TemplateParserTest.php
TestLogger.php Use [...] instead of array(...) in PHP comments and documentation 2019-06-17 21:15:09 +02:00
TestUser.php Drop last bits of oracle 2019-08-14 23:44:22 +02:00
TestUserRegistry.php tests: Remove use of wfRandomString() for test fixtures 2019-05-06 17:22:03 +00:00
TimeAdjustTest.php
TitleMethodsTest.php tests: Prefer assertSame() when comparing the integer 0 2019-09-19 15:35:23 +00:00
TitlePermissionTest.php Remove unneeded overrideMwServices/resetServices 2019-08-29 14:26:18 +03:00
TitleTest.php Merge "Title::getTalkPage(): Restore behavior of interwiki-prefixed & fragment-only titles" 2019-09-16 23:16:16 +00:00
WebRequestTest.php Rename CDN config variables to be generic, deprecating the old names 2019-05-24 21:09:22 +00:00
WikiMapTest.php Removed deprecated WikiMap::getWikiIdFromDomain() method 2019-07-14 01:17:31 +01:00
WikiReferenceTest.php phpunit: Repair GLOBALS reset in MediaWikiUnitTestCase 2019-09-02 20:58:34 +01:00
XmlTest.php tests: Prefer PHPUnit's assertSame() when comparing empty strings 2019-09-20 15:27:58 +00:00