wiki.techinc.nl/tests/phpunit/includes/specials
Tim Starling ba5c3039ce Reduce Special:Contributions query count
ContribsPager was doing an actor table query from User::load() for
every row. Instead pass a UserIdentity to the constructor which can
cache the user ID. Most callers already had a UserIdentity with the
data already cached.

There are some weird kinds of targets which are not really users, but
UserIdentity was constructed unconditionally already, so I'm not
changing that. I did allow the target option to still be used in case
there is any future problem with round tripping strings through
UserIdentity.

Add integration tests.

Change-Id: Ifd05103fa648d0778ef5185fc73128d38d5fce74
2021-08-25 16:19:10 +10:00
..
pagers build: Updating dependencies 2021-07-22 03:36:05 +00:00
ContribsPagerTest.php Reduce Special:Contributions query count 2021-08-25 16:19:10 +10:00
DeletedContribsPagerTest.php Test row filtering for DeletedContribsPager 2021-08-20 11:44:47 -04:00
ImageListPagerTest.php Hard deprecate User ::isIP, ::getOptions 2021-04-26 16:10:24 +00:00
QueryAllSpecialPagesTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
SpecialBlankPageTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
SpecialBlockTest.php Fix namespace blocks of removed extension namespaces 2021-08-23 12:42:17 +02:00
SpecialBooksourcesTest.php Inject services into SpecialBookSources 2020-10-06 21:07:32 +02:00
SpecialContributionsTest.php Tests: Mark more more closures as static 2021-02-09 02:55:57 +00:00
SpecialEditWatchlistTest.php Use WatchlistManager in special classes 2021-04-21 04:40:57 +00:00
SpecialGoToInterwikiTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
SpecialLogTest.php Deprecate UserIdentity::getActorId() 2021-03-13 19:45:57 +01:00
SpecialMIMESearchTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
SpecialMuteTest.php Use CentralIdLookup service instead of static factory 2021-07-26 07:00:53 -07:00
SpecialMyLanguageTest.php Use WikiPage::doUserEditContent() instead of ::doEditContent() 2021-06-28 00:11:30 -07:00
SpecialPageDataTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
SpecialPageExecutor.php Revert "Use CsrfTokenSet as CSRF token source" 2021-08-05 15:48:26 -07:00
SpecialPageTestBase.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
SpecialPasswordResetTest.php Add missing @param and @return to documentation in tests 2021-01-22 19:57:25 +01:00
SpecialPreferencesTest.php Hard deprecate User group methods 2021-07-23 15:00:16 +03:00
SpecialRecentchangesTest.php Fix order of joins in SpecialRecentChanges 2021-05-05 09:29:40 -07:00
SpecialRedirectTest.php Replace deprecated User::newFromId on Special:Redirect 2021-03-19 20:47:26 +00:00
SpecialSearchTest.php Remove meaningless ->expects( $this->any() ) from all tests 2021-04-23 11:58:58 +02:00
SpecialShortPagesTest.php Tests: Start marking some closures as static 2021-02-06 19:57:42 +00:00
SpecialUnblockTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
SpecialUncategorizedCategoriesTest.php Inject LanguageConverterFactory into special pages 2020-11-25 18:39:57 +01:00
SpecialUploadTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
SpecialWatchlistTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00