wiki.techinc.nl/tests/phpunit/includes
Thalia 077e3057ff Extend ContributionsSpecialPage from SpecialDeletedContributions
Why:

* Special:DeletedContributions is built entirely separately
  from Special:Contributions and lacks many of the features
  that Special:Contributions has, such as search form filters.
* As part of the temporary accounts project, a special page
  showing deleted contributions for temporary accounts was
  added via the CheckUser extension (T363362), which has
  feature parity with Special:Contributions. This was achieved
  by factoring out abstract base classes for contributions
  pages.
* SpecialDeletedContributions should be updated to make use of
  this shared functionality, to avoid confusion for users
  switching between these various pages.

What:

* Update SpecialDeletedContributions to extend
  ContributionsSpecialPage.
* Update ContributionsSpecialPage::getUserLinks to be a
  protected instance method instead of a public static method.
  This can just be done, since it was only made public to be
  called from SpecialDeletedContributions, and there are no
  other callers.
* Build a link to Special:Contributions instead of
  Special:DeletedContributions from SpecialDeletedContributions
  by overriding ::getUserLinks.

Bug: T370438
Change-Id: Ica817be5c5e078b88c9b3157b54d0dbf997e8893
2024-08-06 12:00:48 +01:00
..
actions tests: Use namespaced classes (1) 2024-06-14 17:19:36 +00:00
api Merge "Replace gettype() with get_debug_type() in exception messages" 2024-08-04 21:18:48 +00:00
auth Merge "authmanager: Make some tests more robust" 2024-08-02 12:40:11 +00:00
block Use real type hints for services etc. in includes/block/ 2024-07-31 08:54:31 +00:00
cache Add namespace to the root classes of ObjectCache 2024-07-10 00:14:54 +03:30
Category tests: Use namespaced classes (1) 2024-06-14 17:19:36 +00:00
changes Merge "RecentChange: Replace use of legacy error arrays" 2024-07-10 11:40:11 +00:00
changetags Replace db with getDb for Tests 2024-06-23 23:47:56 +01:00
collation Remove auto-generated "Class ClassName" comments 2024-05-06 10:03:41 +02:00
CommentStore Replace db with getDb for Tests 2024-06-23 23:47:56 +01:00
composer
config
content content: Widen @covers tags in phpunit tests 2024-07-21 21:03:10 +00:00
db Add namespace to the root classes of ObjectCache 2024-07-10 00:14:54 +03:30
debug Use MainConfigNames constants in tests where possible 2024-07-10 10:11:22 +00:00
deferred Replace db with getDb for Tests 2024-06-23 23:47:56 +01:00
diff diff: migrate TextSlotDiffRenderer to use StatsFactory 2024-06-28 19:29:31 +00:00
editpage Hard deprecate public access to EditPage::internalAttemptSave() 2024-07-21 15:03:54 +00:00
exception Use MainConfigNames constants in tests where possible 2024-07-10 10:11:22 +00:00
export Replace db with getDb for Tests 2024-06-23 23:47:56 +01:00
ExternalLinks LinkFilter::makeLikeArray: Fix another 'path' access 2024-05-14 12:29:23 +02:00
externalstore
filebackend Add namespace to the root classes of ObjectCache 2024-07-10 00:14:54 +03:30
filerepo Use $this->setRequest and $this->setGroupPermissions in PHPUnit tests 2024-07-11 18:38:00 +00:00
GlobalFunctions Use constants provided by MainConfigNames for config names 2024-05-18 01:26:46 +08:00
HookContainer
Html Add "implements Stringable" to every class with "function __toString()" 2024-06-13 00:23:39 +00:00
http Use StatusValue::getMessages() instead of deprecated methods 2024-05-18 14:45:54 +00:00
import ImportLinkCacheIntegrationTest: Set named user in context 2024-06-27 09:02:56 +02:00
installer Add tests for WebInstaller::getAcceptLanguage 2024-07-02 18:57:33 +00:00
interwiki tests: Avoid usage of deprecated setContentLang() 2024-07-19 17:28:39 +02:00
jobqueue Replace gettype() with get_debug_type() in debug/log/test output 2024-07-31 19:33:57 +02:00
language Namespace MessageSpecifier under Wikimedia\Message\ 2024-07-28 14:21:32 +02:00
languages [i18n] Change the names of the Arabic months 2024-07-18 18:44:26 +00:00
libs Replace gettype() with get_debug_type() in debug/log/test output 2024-07-31 19:33:57 +02:00
linkeddata tests: Use namespaced classes (@covers) 2024-06-14 00:15:40 +02:00
linker Drop duplicate test cases and @dataProviders from tests 2024-07-19 10:18:31 +00:00
logging logging: Hard-deprecate LogFormatter::newFromRow/newFromEntry 2024-07-29 20:29:25 +00:00
mail mail: Improve docs, fix file headers, widen @covers 2024-05-10 19:48:43 +01:00
media tests: Use LanguageFactory in FormatMetadataTest 2024-07-20 22:44:35 +02:00
Message Deprecate Message::objectParams() and related code 2024-05-28 22:03:46 +00:00
Navigation phpunit: Fix tests relying on implicit wgScript/wgArticlePath 2024-05-05 00:00:01 +00:00
objectcache objectcache: Update tests that are really for ObjectCacheFactory 2024-07-24 02:57:23 +00:00
Output OutputPage: Inline getCdnCacheEpoch() into checkLastModified() 2024-07-26 15:49:25 -04:00
OutputTransform HandleParsoidSectionLinks: also run this pass if COLLAPSABLE_SECTIONS 2024-07-30 17:22:55 -04:00
page Replace deprecated LogFormatter::newFromRow/newFromEntry 2024-07-29 22:26:41 +02:00
pager ContributionsPager: Fix date link in archive mode 2024-08-01 18:15:26 +01:00
ParamValidator/TypeDef REST: avoid crash on non-strings in request body 2024-07-16 17:18:31 +00:00
parser Replace gettype() with get_debug_type() in debug/log/test output 2024-07-31 19:33:57 +02:00
password Namespace includes/password 2024-05-18 16:17:38 +01:00
Permissions Use real type hints for services etc. in includes/Permissions/ 2024-07-31 08:56:17 +00:00
poolcounter Add namespace to the root classes of ObjectCache 2024-07-10 00:14:54 +03:30
preferences Extract LintErrorChecker out of SignatureValidator 2024-07-29 14:35:40 -04:00
profiler
rcfeed Add namespace and deprecation alias to MachineReadableRCFeedFormatter 2024-05-19 17:00:02 +03:30
registration Add namespace to the root classes of ObjectCache 2024-07-10 00:14:54 +03:30
Request Add namespace and deprecation alias to FormatJson 2024-05-16 16:28:01 +03:30
ResourceLoader Merge "resourceloader: Add ResourceLoaderModifyStartupSourceUrls hook" 2024-08-01 03:25:14 +00:00
Rest Use real type hints for services etc. in includes/Rest/ 2024-06-11 22:40:44 +02:00
Revision Drop duplicate test cases and @dataProviders from tests 2024-07-19 10:18:31 +00:00
search Replace db with getDb for Tests 2024-06-23 23:47:56 +01:00
session Replace gettype() with get_debug_type() in exception messages 2024-07-31 19:24:39 +02:00
shell
site Consistent spelling of "subpage" 2024-08-06 04:01:02 -04:00
SiteStats Add namespace to the root classes of ObjectCache 2024-07-10 00:14:54 +03:30
skins tests: Use namespaced classes (1) 2024-06-14 17:19:36 +00:00
sparql
specialpage ChangesListSpecialPage: Add another query test case 2024-08-02 01:01:26 +02:00
specials Extend ContributionsSpecialPage from SpecialDeletedContributions 2024-08-06 12:00:48 +01:00
Status Namespace MessageSpecifier under Wikimedia\Message\ 2024-07-28 14:21:32 +02:00
Storage Merge "Use MainConfigNames constants in tests where possible" 2024-07-11 12:46:04 +00:00
title Merge "Use MainConfigNames constants in tests where possible" 2024-07-11 12:46:04 +00:00
upload tests: Use namespaced classes (1) 2024-06-14 17:19:36 +00:00
user Restore password reset invalid email message 2024-07-30 14:19:13 +00:00
utils Use constants provided by MainConfigNames for config names 2024-05-18 01:26:46 +08:00
watchlist Replace db with getDb for Tests 2024-06-23 23:47:56 +01:00
WikiMap tests: Use namespaced classes (1) 2024-06-14 17:19:36 +00:00
xml Add namespace and deprecation alias to Xml and XmlSelect 2024-05-16 15:23:14 +03:30
AutoLoaderTest.php
MediaWikiServicesTest.php
MockServiceWiring.php
SampleTest.php
TestUser.php
TestUserRegistry.php