wiki.techinc.nl/tests/phpunit/includes
Petr Pchelko 816e02ae51 Convert RevisionRecord to Authority and PageIdentity
As we convert the RevisionRecord to using Authority,
we no longer need Title instances, so we can convert
that to PageIdentity.

Ideally, we'd part away from using Title at all, but:
1. For foreign wikis PageIdentity has stronger validation,
so calling PageIdentity getId() on Title will break things.
There's still a lot of code depending on lax Title guarantees,
so we keep it.
2. A lot of code still depends on Title, so we try to pass it
through even if we don't nesessarily need to, to save cost
on recreating it later on.

Bug: T271458
Depends-On: I287400b967b467ea18bebbb579e881a785a19158
Change-Id: I63d9807264d7e2295afef51fc9d982447f92fcbd
2021-01-21 13:37:01 -06:00
..
actions Remove broken/outdated @param/@throws tags from @dataProviders 2021-01-21 03:42:42 +00:00
api Merge "Misc cleanup to api integration tests" 2021-01-21 07:32:08 +00:00
auth tests: Remove @param docs from test code that just repeat the signature 2021-01-21 03:41:23 +00:00
block Revert "Enhance GroupPermissionsLookup and use it." 2021-01-12 04:48:49 +00:00
cache More misc test cleanup 2020-12-24 00:52:06 +00:00
changes More misc test cleanup 2020-12-24 00:52:06 +00:00
changetags More misc test cleanup 2020-12-24 00:52:06 +00:00
collation More misc test cleanup 2020-12-24 00:52:06 +00:00
config
content Convert RevisionRecord to Authority and PageIdentity 2021-01-21 13:37:01 -06:00
context Add Authority to Context 2021-01-20 09:07:27 -06:00
db Make unit tests assertion about assertNotEquals more strict 2020-11-01 23:12:06 +00:00
debug Merge "Emit deprecation warning for deprecated overrides." 2021-01-13 04:06:55 +00:00
deferred deferred: make DeferredUpdates::doUpdates() recursion more uniform 2021-01-14 15:37:58 -08:00
diff Remove broken/outdated @param/@throws tags from @dataProviders 2021-01-21 03:42:42 +00:00
editpage Hard deprecate NamespaceInfo::getRestrictionLevels 2020-11-16 04:40:24 +01:00
exception exception: Move remaiming MWExceptionHandler tests to its test case 2021-01-07 15:09:12 -08:00
externalstore
filebackend More misc test cleanup 2020-12-24 00:52:06 +00:00
filerepo Remove broken/outdated @param/@throws tags from @dataProviders 2021-01-21 03:42:42 +00:00
GlobalFunctions Remove hard deprecated wfIsBadImage() 2020-12-29 15:55:10 +02:00
HookContainer
htmlform Make unit tests assertion about assertNotEquals more strict 2020-11-01 23:12:06 +00:00
http Add a function to HttpRequestFactory for creating a GuzzleHttp\Client 2020-10-22 23:11:47 -05:00
import Remove broken/outdated @param/@throws tags from @dataProviders 2021-01-21 03:42:42 +00:00
interwiki phpunit: Remove odd "MediaWiki" group from tests using it 2021-01-08 18:35:30 +00:00
jobqueue Remove broken/outdated @param/@throws tags from @dataProviders 2021-01-21 03:42:42 +00:00
language
libs Remove broken/outdated @param/@throws tags from @dataProviders 2021-01-21 03:42:42 +00:00
linkeddata Remove broken/outdated @param/@throws tags from @dataProviders 2021-01-21 03:42:42 +00:00
linker
logging Improve some function documentation in tests 2021-01-14 22:13:55 +01:00
mail Convert or split some tests to MediaWikiUnitTestCase 2021-01-07 17:51:27 +00:00
media Remove broken/outdated @param/@throws tags from @dataProviders 2021-01-21 03:42:42 +00:00
Message
Navigation
objectcache
page Remove broken/outdated @param/@throws tags from @dataProviders 2021-01-21 03:42:42 +00:00
pager Improve some function documentation in tests 2021-01-14 22:13:55 +01:00
ParamValidator/TypeDef Deprecate InterwikiLoadPrefix hook 2020-12-21 19:28:48 +00:00
parser Convert RevisionRecord to Authority and PageIdentity 2021-01-21 13:37:01 -06:00
password
Permissions Remove broken/outdated @param/@throws tags from @dataProviders 2021-01-21 03:42:42 +00:00
poolcounter Fix incomplete/bogus PHPDoc tags in various tests 2021-01-14 19:02:00 +00:00
preferences
rcfeed
registration Use expectWarning/Deprecation/Notice/Error() in phpunit tests 2021-01-04 00:16:51 +00:00
resourceloader Merge "Feature file styles should precede module defined ones" 2021-01-13 14:24:44 +00:00
Rest
Revision Convert RevisionRecord to Authority and PageIdentity 2021-01-21 13:37:01 -06:00
search Remove broken/outdated @param/@throws tags from @dataProviders 2021-01-21 03:42:42 +00:00
session Remove broken/outdated @param/@throws tags from @dataProviders 2021-01-21 03:42:42 +00:00
shell Improve some function documentation in tests 2021-01-14 22:13:55 +01:00
site
skins tests: Remove @param docs from test code that just repeat the signature 2021-01-21 03:41:23 +00:00
sparql
specialpage Use expectWarning/Deprecation/Notice/Error() in phpunit tests 2021-01-04 00:16:51 +00:00
specials SpecialUnblockTest: add missing parent::tearDown call 2021-01-21 07:36:19 +00:00
Storage Convert RevisionRecord to Authority and PageIdentity 2021-01-21 13:37:01 -06:00
title Remove broken/outdated @param/@throws tags from @dataProviders 2021-01-21 03:42:42 +00:00
upload Deprecate InterwikiLoadPrefix hook 2020-12-21 19:28:48 +00:00
user Remove broken/outdated @param/@throws tags from @dataProviders 2021-01-21 03:42:42 +00:00
utils Make use of array deconstruction directly in foreach, if possible 2020-11-12 18:38:06 +00:00
watcheditem Remove WatchedItemStoreUnitTest::getFakeRow 2021-01-15 09:21:48 +00:00
ActorMigrationTest.php More misc test cleanup 2020-12-24 00:52:06 +00:00
ActorMigrationTest.sql
AutoLoaderTest.php
AutopromoteTest.php
CategoryTest.php
CommentStoreCommentTest.php
CommentStoreTest.php
CommentStoreTest.sql
ContentSecurityPolicyTest.php More misc test cleanup 2020-12-24 00:52:06 +00:00
DeprecatedGlobalTest.php Use expectWarning/Deprecation/Notice/Error() in phpunit tests 2021-01-04 00:16:51 +00:00
DiffHistoryBlobTest.php
EditPageConstraintsTest.php Add AccidentalRecreationConstraint 2020-11-16 22:36:54 +00:00
EditPageTest.php Swap out uses of User->isLoggedIn() with ->isRegistered() 2020-12-22 03:13:37 +00:00
ExportTest.php
ExtraParserTest.php Deprecate InterwikiLoadPrefix hook 2020-12-21 19:28:48 +00: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 Use expectWarning/Deprecation/Notice/Error() in phpunit tests 2021-01-04 00:16:51 +00:00
HtmlTest.php Use expectWarning/Deprecation/Notice/Error() in phpunit tests 2021-01-04 00:16:51 +00:00
LinkerTest.php
LinkFilterTest.php
ListToggleTest.php
MagicWordFactoryTest.php
MediaWikiServicesTest.php phpunit: Remove odd "MediaWiki" group from tests using it 2021-01-08 18:35:30 +00:00
MediaWikiTest.php More misc test cleanup 2020-12-24 00:52:06 +00:00
MediaWikiVersionFetcherTest.php
MergeHistoryTest.php Inject WikiPageFactory into MergeHistory/MovePage 2020-11-11 22:10:47 +01:00
MessageTest.php tests: Use ::class on exception names 2021-01-03 20:47:49 +01:00
MockServiceWiring.php Use the old HookContainer to set up the post-reset services 2020-12-01 13:04:12 +11:00
MovePageTest.php
MultiHttpClientTest.php
MWTimestampTest.php
OutputPageTest.php Remove broken/outdated @param/@throws tags from @dataProviders 2021-01-21 03:42:42 +00:00
PagePropsTest.php
PrefixSearchTest.php WikiPage: deprecated construction on bad titles 2021-01-20 14:31:11 +01:00
ReadOnlyModeTest.php
RevisionDbTest.php Improve some function documentation in tests 2021-01-14 22:13:55 +01:00
RevisionTest.php Convert RevisionRecord to Authority and PageIdentity 2021-01-21 13:37:01 -06:00
RevisionTestModifyableContent.php
RevisionTestModifyableContentHandler.php
SampleTest.php Fix hang of ApiMainTest 2020-12-16 15:39:19 +11:00
SiteStatsTest.php
StatusTest.php [StatusTest] Replace ReflectionMethod with TestingAccessWrapper 2020-10-30 14:02:10 +00:00
SystemBlockTest.php
TemplateCategoriesTest.php
TestLocalisationCache.php
TestLogger.php
TestUser.php ParserTestRunner: share more code w/ MediaWikiIntegrationTestCase 2021-01-07 23:31:12 -05:00
TestUserRegistry.php Swap out uses of User->isLoggedIn() with ->isRegistered() 2020-12-22 03:13:37 +00:00
TimeAdjustTest.php
TitleMethodsTest.php Title: add tests for makeTitle and makeTitleSafe 2021-01-20 16:57:46 +00:00
TitleTest.php Define equality for PageIdentity and LinkTarget 2021-01-19 23:07:37 +00:00
WebRequestTest.php
WikiMapTest.php
WikiReferenceTest.php
XmlTest.php Convert or split some tests to MediaWikiUnitTestCase 2021-01-07 17:51:27 +00:00