wiki.techinc.nl/tests/phpunit/includes
DannyS712 47d70dbfba Post Revision-removal cleanup
Updates for the removal of the Revision class itself
and the various methods/hooks/variables removed in the
process, including:

- Update some documentation removing most references
to the Revision class and updating the MCR migration
notes to reflect the past tense for Revision methods.

- Change some capitalization from "Revision" to "revision"
to make it clear comments are about revisions in general,
not the Revision class in particular.

- Minor code tweaks including removing unused variables that
were around for the old hooks that were removed, and
removing the use of DeprecatablePropertyArray where no
longer needed for anything.

- Fix incorrect documentation for PageUpdater::getStatus(),
the status value changed a while ago to have revision-record
in addition to revision, and recently to only have the
revision-record, but ironically PageUpdater was never updated.

- Removed Parser::$mRevisionObject, used to be a Revision object
and was deprecated in 1.35, missed earlier because it was no
longer being set to Revision objects, always null.

- Add RevisionRecord typehints in DummyLinker to match those
in the corresponding Linker methods

This should be a no-op in terms of functionality.

Bug: T247143
Change-Id: I03bbb94fc29085855448780b1a5ad9063911ecc4
2021-06-24 00:32:39 +00:00
..
actions Hard deprecate WatchAction::getWatchToken 2021-06-23 17:20:22 +00:00
api Merge "Hard-deprecate AbstractBlock::getTargetAndType() and getTarget()" 2021-06-22 14:41:42 +00:00
auth Remove AuthManager::singleton 2021-06-18 23:34:33 +02:00
block Hard-deprecate AbstractBlock::getTargetAndType() and getTarget() 2021-06-22 16:59:00 +03:00
cache Merge "Optimise MessageCache::isMainCacheable() for the single-message case" 2021-05-15 02:52:30 +00:00
changes Hard deprecate RecentChange::getPerformer() 2021-06-02 11:29:06 +03:00
changetags Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
collation More misc test cleanup 2020-12-24 00:52:06 +00:00
config Tests: Mark more more closures as static 2021-02-09 02:55:57 +00:00
content Hard deprecate ContentHandler::getForTitle() 2021-06-20 12:10:40 +02:00
context Remove $actor field from UsererIdentityValue 2021-04-13 18:18:06 +00:00
db Fix various typos in documentation 2021-06-21 00:26:07 +00:00
debug Replace PHPUnit ->returnValue() with ->willReturn() shortcut 2021-04-22 10:37:45 +02:00
deferred Deferred updates: remove Title from method signatures. 2021-05-11 11:17:02 +02:00
diff Replace RecentChange::getPerformer with RecentChange::getPerformerIdentity 2021-05-27 11:45:17 +03:00
editpage Replace easy usages of User for UserIdentity/Authority 2021-06-09 07:53:52 -07:00
exception Remove sepate getMockWgOut() method in exception tests 2021-03-08 03:54:14 +00:00
externalstore Remove unneeded uses of MediaWikiCoversValidator 2021-05-22 01:43:29 +00:00
filebackend Add some missing __METHOD__ parameters to database calls 2021-06-07 19:28:51 +00:00
filerepo Use the unserialized form of image metadata internally 2021-06-08 17:04:01 +10:00
GlobalFunctions Drop global function wfNegotiateType, deprecated in 1.36 2021-05-10 15:09:49 -07:00
HookContainer Tests: Mark more more closures as static 2021-02-09 02:55:57 +00:00
htmlform Tests: Mark more more closures as static 2021-02-09 02:55:57 +00:00
http Move HttpRequestFactoryTest to a unit test 2021-06-02 13:20:02 +00:00
import WikiImporter: inject services 2021-05-24 23:10:07 +02:00
installer Installer: Do not use mediawiki.skinning.interface module 2021-04-15 11:11:32 -07:00
interwiki Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
jobqueue Merge "Add MediaWikiIntegrationTestCase::runJobs() and use it" 2021-05-05 03:15:17 +00:00
language
libs Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
linkeddata Remove broken/outdated @param/@throws tags from @dataProviders 2021-01-21 03:42:42 +00:00
linker Pass PageReference as possible parameter to LinkRenderer methods 2021-05-10 16:01:27 -04:00
logging Merge "Change "protection level" to "protection settings"" 2021-05-23 12:54:48 +00:00
mail Use UserIdentityValue in tests where possible 2021-04-22 09:32:43 +02:00
media Use the unserialized form of image metadata internally 2021-06-08 17:04:01 +10:00
Message phpunit: Mass-replace setMethods with onlyMethods and adjust 2021-04-16 20:15:00 +02:00
Navigation
objectcache Make SqlBagOStuffTest a pure unit test 2021-02-27 02:22:41 +00:00
page Replace RecentChange::getPerformer with RecentChange::getPerformerIdentity 2021-05-27 11:45:17 +03:00
pager Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
ParamValidator/TypeDef Convert NamespaceDefTest to a unit test 2021-05-12 07:17:12 +00:00
parser ParserTest: remove unused $mockConfig 2021-05-29 01:24:52 +00:00
password Remove User from password policy check interfaces 2021-06-11 10:21:14 -07:00
Permissions Move the fallback to check the 'create' right into PermissionManager when we checking 'edit' right. 2021-06-23 18:09:22 +03:00
poolcounter ParserCache: only use in-process caching for metadata 2021-04-06 17:53:38 -06:00
preferences DefaultPreferencesFactory: inject and use UserOptionsManager 2021-06-17 17:27:40 -07:00
rcfeed phpunit: Mass-replace setMethods with onlyMethods and adjust 2021-04-16 20:15:00 +02:00
registration Fix array order for array_replace_recursive merge strategy 2021-05-23 13:29:35 -04:00
resourceloader resourceloader: Add missing Module->setConfig() calls in tests and installer 2021-06-13 21:20:58 +00:00
Rest Fix order of parameters in assertions 2021-05-03 15:50:53 +00:00
Revision Make RevisionStore::getKnownCurrentRevision work for foreign wikis 2021-06-21 07:31:35 -07:00
search api: Fix prefixsearch returning the entire database 2021-06-17 16:25:43 +02:00
session Move CRSF token generation to CsrfTokenSet 2021-06-18 12:24:19 -07:00
shell Tests: Mark more more closures as static 2021-02-09 02:55:57 +00:00
site Remove meaningless ->expects( $this->any() ) from all tests 2021-04-23 11:58:58 +02:00
skins Add tests for Skin::getRelevantUser 2021-06-07 07:31:24 -07:00
sparql
specialpage Update DatabaseBlock construct option 'by' and 'byText' usage to use User Identity only 2021-06-02 17:01:32 +03:00
specials Hard-deprecate AbstractBlock::getTargetAndType() and getTarget() 2021-06-22 16:59:00 +03:00
Storage Post Revision-removal cleanup 2021-06-24 00:32:39 +00:00
title Add DummyServicesTrait::getDummyInterwikiLookup 2021-05-05 10:57:59 -07:00
upload Remove some more comments that literally repeat the code 2021-06-18 21:23:56 +00:00
user Improvements to user preferences fetching/saving 2021-06-23 23:56:52 +00:00
utils Remove meaningless ->expects( $this->any() ) from all tests 2021-04-23 11:58:58 +02:00
watcheditem Post Revision-removal cleanup 2021-06-24 00:32:39 +00:00
ActorMigrationTest.php Split a base class out of ActorMigration 2021-05-03 15:14:06 +10:00
ActorMigrationTest.sql
AutoLoaderTest.php Add script for resolving class names to files 2021-04-16 11:04:39 +00:00
CategoryTest.php Simplify database handling in CategoryTest 2021-05-09 00:53:31 +00:00
CommentStoreCommentTest.php
CommentStoreTest.php build: Upgrade mediawiki-codesniffer from v35.0.0 to v36.0.0 2021-04-29 13:00:15 -07:00
CommentStoreTest.sql
ContentSecurityPolicyTest.php build: Swap deprecated @codingStandardsIgnore to phpcs:ignore 2021-04-04 21:18:22 +02:00
EditPageConstraintsTest.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
EditPageTest.php EditPage::getExpectedParentRevision(): guard against null edittime 2021-05-06 11:38:30 +10:00
ExportTest.php Revert "Wrap libxml_disable_entity_loader() calls in version constraint" 2021-01-27 16:06:38 +00:00
ExtraParserTest.php Parser: Trim trailing whitespace as the last step in pre-save transform 2021-04-14 20:53:49 +02:00
FauxRequestTest.php Implement FauxRequest::getPostValues() 2020-11-27 09:38:08 +01:00
GitInfoTest.php More misc test cleanup 2020-12-24 00:52:06 +00:00
HooksTest.php Tests: Mark more more closures as static 2021-02-09 02:55:57 +00:00
HtmlTest.php Revert "message boxes: Use CSS classes adhering to class naming scheme" 2021-01-25 16:31:08 +00:00
LinkerTest.php Restore userlink for IP range. 2021-02-11 15:32:36 +01:00
LinkFilterTest.php
MagicWordFactoryTest.php
MediaWikiServicesTest.php Tests: Mark more more closures as static 2021-02-09 02:55:57 +00:00
MediaWikiTest.php Tests: Mark more more closures as static 2021-02-09 02:55:57 +00:00
MediaWikiVersionFetcherTest.php
MergeHistoryTest.php Fix order of parameters in assertions 2021-05-03 15:50:53 +00:00
MessageTest.php Use Message::page instead of Message::title 2021-06-09 13:18:22 +00:00
MockServiceWiring.php Use the old HookContainer to set up the post-reset services 2020-12-01 13:04:12 +11:00
MovePageTest.php Use DummyServicesTrait::getDummyNamespaceInfo in more places 2021-05-05 01:53:30 +00:00
MultiHttpClientTest.php Remove meaningless ->expects( $this->any() ) from all tests 2021-04-23 11:58:58 +02:00
MWTimestampTest.php MWTimestampTest: use StaticUserOptionsLookup 2021-05-12 21:05:48 +00:00
OutputPageTest.php resourceloader: Add missing Module->setConfig() calls in tests and installer 2021-06-13 21:20:58 +00:00
PagePropsTest.php Simplify PagePropsTest 2021-05-03 14:42:27 +00:00
ReadOnlyModeTest.php Remove meaningless ->expects( $this->any() ) from all tests 2021-04-23 11:58:58 +02:00
SampleTest.php Fix hang of ApiMainTest 2020-12-16 15:39:19 +11:00
SiteStatsTest.php
StatusTest.php phpunit: Mass-replace setMethods with onlyMethods and adjust 2021-04-16 20:15:00 +02:00
TemplateCategoriesTest.php TemplateCategoriesTest: remove unneeded require of runJobs.php 2021-05-12 07:02:02 +00:00
TestUser.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
TestUserRegistry.php Remove unneeded @return documentation 2021-01-25 19:44:27 +01:00
TimeAdjustTest.php
TitleMethodsTest.php Title: avoid instance cache pollution 2021-05-07 11:37:54 +02:00
TitleTest.php Clean up hard deprecated Title methods 2021-05-11 07:41:18 -07:00
WebRequestTest.php phpunit: Mass-replace setMethods with onlyMethods and adjust 2021-04-16 20:15:00 +02:00
WikiMapTest.php
XmlTest.php Move Xml::expandAttributes tests to unit tests 2021-03-07 19:27:11 +00:00