wiki.techinc.nl/tests/phpunit/includes
daniel ec34eb39b9 MutableRevisionRecord: ensure consistent hash and size
This ensures that getSha1() and getSize() will return values consistent
with the revision's content, even if the content was changed indirectly
via the MutableRevisionSlots object returned from getSlots(), after
getSha1() or getSized() had already been called and the values cached.

While mechanism that triggers T239717 remains unknown, the root cause
appears to be that the cached hash and size may get out of sync with
the actual content of the new revision. The suspected mechanism is a
side-effect of a parser hook triggered during PST.

Bug: T239717
Change-Id: I0b61eb639282334df884313cdfbb3521fbfe7e88
2020-04-20 09:51:08 -07:00
..
actions Merge "Hide deprecated warnings for Hooks::clear()" 2020-04-15 02:38:31 +00:00
api Replace uses and hard deprecate Revision::newFromTitle 2020-04-18 04:47:10 +00:00
auth Hook Container 2020-04-17 15:48:38 +10:00
block DatabaseBlock: Deprecate some obsolete methods 2020-04-15 20:35:48 +01:00
cache cache: Remove use of $wgContLanguageCode in MessageCacheTest 2020-03-15 00:23:02 +00:00
changes Remove usages and hard deprecate Revision::newFromRow 2020-03-25 11:42:36 -07:00
changetags tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
collation tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
config Replace all new stdClass() with identical (object)[] 2020-03-04 21:18:30 +00:00
content Add @author tags I forgot to include 2020-04-11 08:13:48 +00:00
context Coding style: Auto-fix MediaWiki.Usage.PHPUnit* 2020-01-10 10:17:12 +00:00
db rdbms: add "loadMonitor" parameter to LBFactoryMulti/LBFactorySimple 2020-03-27 20:43:00 -07:00
debug Stop accepting ApiMain instances in ApiResult::__construct 2020-03-18 15:57:05 +00:00
deferred Add small HtmlCacheUpdater service class to normalize purging code (2) 2020-04-14 03:19:07 +00:00
diff Fix most PHPUnit 8 compat issues in DBless tests 2019-12-15 00:24:21 +00:00
editpage Autofix 94 PHPUnit 8 compat issues 2019-12-13 15:29:10 +01:00
exception Make MWException show up pretty even if $wgLang is a stub 2020-03-23 03:49:45 +00:00
externalstore ExternalStore: report cause of non-exception failure 2020-04-17 18:00:28 +02:00
filebackend Set logger to null when connecting to DB in DBFileJournalIntegrationTest.php 2020-04-13 09:43:40 -07:00
filerepo Use MediaWikiServices::getRepoGroup in file related classes 2020-03-14 12:36:27 +00:00
GlobalFunctions Use MediaWikiServices::getMessageCache 2020-03-14 14:25:03 +01:00
htmlform HTMLForm: Allow status object to have raw parameters 2020-02-09 18:06:12 +01:00
http Support cookies in GuzzleHttpRequest 2020-03-18 21:48:26 +03:00
import Hard deprecate Revision::getQueryInfo and ::getArchiveQueryInfo 2020-03-26 23:53:19 +00:00
interwiki Remove Language::factory and getParentLanguage use 2019-10-27 12:34:28 +02:00
jobqueue jobs: Rewrite non-standard CategoryMembershipChangeJob constructor 2020-04-17 15:48:25 +02:00
language Tests: Remove unneeded uses of global $wgUser 2020-03-12 00:52:43 +00:00
libs Merge "objectcache: make WANObjectCache::set() handle very slow regeneration" 2020-04-15 01:46:35 +00:00
linkeddata Fix most PHPUnit 8 compat issues in DBless tests 2019-12-15 00:24:21 +00:00
linker tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
logging Stop using assertContains with string haystack 2019-12-15 00:22:44 +00:00
mail
media Add MediaWikiIntegrationTestCase::assertArraySubmapSame() 2020-03-19 15:53:59 -07:00
Message MediaWiki\Message: Extract Message↔MessageValue conversion from TextFormatter 2019-11-26 08:58:05 +00:00
Navigation Coding style: Auto-fix MediaWiki.Classes.UnsortedUseStatements.UnsortedUse 2020-01-10 09:32:25 -08:00
objectcache SqlBagOStuff: Add a limit to key length 2020-02-26 13:22:51 -08:00
page Hard deprecate WikiPage::insertProtectNullRevision 2020-04-18 05:08:21 +00:00
pager tests: Replace PHPUnit's loose assertEquals(null) with assertNull() 2019-09-27 19:15:38 +00:00
ParamValidator/TypeDef UserDef: Don't return incomplete UserIdentityValues 2020-02-19 15:28:40 -05:00
parser Deprecate Parser::firstCallInit() 2020-04-17 12:49:34 -04:00
password Password policy to check if a password is a substring of a username 2020-01-13 23:09:13 +00:00
Permissions Merge "Revert "Replace weird stdClass mock with class actually expected"" 2020-03-03 23:09:07 +00:00
poolcounter Fixes for PHPUnit 8 compat in DB suite 2019-12-15 00:27:54 +00:00
preferences parser: Inject a LanguageConverterFactory through DI containers: 2020-02-04 14:42:03 +02:00
rcfeed tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
registration Hook Container 2020-04-17 15:48:38 +10:00
resourceloader resourceloader: Let derivative context inherit getUserObj() object 2020-04-14 03:59:52 +01:00
Rest WebRequest & RequestFromGlobals: get HTTP headers in one way 2020-04-03 09:32:41 +02:00
Revision MutableRevisionRecord: ensure consistent hash and size 2020-04-20 09:51:08 -07:00
search Fix failing tests relying on private Hooks.php properties 2020-04-13 22:58:26 +00:00
session Replace deprecated PHPUnit method in test 2020-04-02 10:06:58 +01:00
shell Make use of PHPUnit's assertCount feature where possible 2020-03-02 15:58:41 +00:00
site Make use of PHPUnit's assertCount feature where possible 2020-03-02 15:58:41 +00:00
skins Add MediaWikiIntegrationTestCase::assertArraySubmapSame() 2020-03-19 15:53:59 -07:00
sparql Coding style: Auto-fix MediaWiki.Usage.IsNull.IsNull 2020-01-10 14:17:13 -08:00
specialpage Reduce usage of the Language class 2020-03-03 01:38:27 +03:00
specials SpecialBlockTest: Test partially blocked sysop can perform blocks 2020-04-02 16:14:32 +01:00
Storage Merge "MCR: provide MultiContentSave hook to replace PageContentSave" 2020-03-30 17:09:45 +00:00
title Coding style: Auto-fix MediaWiki.Usage.IsNull.IsNull 2020-01-10 14:17:13 -08:00
upload Tests: Replace ::doDeleteArticle with WikiPage::doDeleteArticleReal 2020-03-25 11:34:17 -07:00
user Include throttle message in password reset success 2020-04-15 16:43:06 -07:00
utils Move UIDGenerator code to a service and put it under /libs 2020-02-18 00:20:40 +00:00
watcheditem Merge "Add expiry type to ParamValidator" 2020-04-09 16:57:41 +00:00
ActorMigrationTest.php Replace complicated assertions with assertIsString() and such 2020-01-28 19:17:58 +00:00
ActorMigrationTest.sql
AutoLoaderTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
AutopromoteTest.php Kill the remaining usages of PHPUnit4And6Compat methods 2019-10-06 10:12:54 +00:00
CategoryTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
CommentStoreCommentTest.php
CommentStoreTest.php Remove CommentStore::newKey, deprecated and unused 2020-02-20 02:00:15 +00:00
CommentStoreTest.sql
ContentSecurityPolicyTest.php include blob: as a default script-src 2020-02-27 19:02:55 +00:00
DeprecatedGlobalTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
DiffHistoryBlobTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
EditPageTest.php Merge "phpunit: Change optional params before required params to also be required" 2020-03-30 21:29:45 +00:00
ExportTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
ExtraParserTest.php Hard-deprecate direct calls to Parser::__construct() 2020-04-16 16:34:34 -04:00
FauxRequestTest.php Replace complicated assertions with assertIsString() and such 2020-01-28 19:17:58 +00:00
GitInfoTest.php Coding style: Auto-fix MediaWiki.Usage.PHPUnit* 2020-01-10 10:17:12 +00:00
HooksTest.php Hook Container 2020-04-17 15:48:38 +10:00
HtmlTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
LinkerTest.php Pass RevisionRecord to Linker methods 2020-04-18 01:24:54 +00:00
LinkFilterTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
ListToggleTest.php Remove Language::factory and getParentLanguage use 2019-10-27 12:34:28 +02:00
MagicWordFactoryTest.php Autofix 94 PHPUnit 8 compat issues 2019-12-13 15:29:10 +01:00
MediaWikiServicesTest.php tests: Remove BC code for PHP < 7.1 2020-03-09 18:12:43 +01:00
MediaWikiTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
MediaWikiVersionFetcherTest.php Provide MW_VERSION and deprecate fake global $wgVersion 2020-02-25 01:55:21 +00:00
MergeHistoryTest.php
MessageTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
MovePageTest.php MovePage: Don't fail to delete a nonexistent file 2020-04-07 13:58:39 +00:00
MultiHttpClientTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
MWTimestampTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
OutputPageTest.php OutputPage: Add experimental preconnect resource hint for thumbnails 2020-04-07 21:04:47 +00:00
PagePropsTest.php Tests: Replace ::doDeleteArticle with WikiPage::doDeleteArticleReal 2020-03-25 11:34:17 -07:00
PrefixSearchTest.php Fix failing tests relying on private Hooks.php properties 2020-04-13 22:58:26 +00:00
ReadOnlyModeTest.php
RevisionDbTest.php Replace uses and hard deprecate Revision::newFromTitle 2020-04-18 04:47:10 +00:00
RevisionTest.php Hard deprecate Revision::setId 2020-04-11 10:22:36 +00:00
RevisionTestModifyableContent.php
RevisionTestModifyableContentHandler.php
SampleTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
SiteStatsTest.php Add public as visibility in tests folder 2019-10-10 21:55:37 +02:00
StatusTest.php phpunit: Change optional params before required params to also be required 2020-03-29 15:45:17 +00:00
SystemBlockTest.php
TemplateCategoriesTest.php Pass a user to WikiPage::doDeleteArticleReal, use new signature 2020-03-19 00:54:29 +00:00
TestLocalisationCache.php Make LocalisationCache a service 2019-10-07 13:18:47 -07:00
TestLogger.php
TestUser.php
TestUserRegistry.php Add missing @param and @return to documentation 2019-11-16 13:45:55 +01:00
TimeAdjustTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
TitleMethodsTest.php Remove Title move functions, deprecated in favor of MovePage class 2020-02-19 20:44:55 -08:00
TitlePermissionTest.php Hard deprecate Title::getUserPermissionsErrors 2020-02-26 05:09:55 +00:00
TitleTest.php title: Add unit tests for Title::getCdnUrls() 2020-04-17 18:39:53 +01:00
WebRequestTest.php WebRequest & RequestFromGlobals: get HTTP headers in one way 2020-04-03 09:32:41 +02:00
WikiMapTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
WikiReferenceTest.php
XmlTest.php Coding style: Auto-fix MediaWiki.Usage.PHPUnit* 2020-01-10 10:17:12 +00:00