wiki.techinc.nl/tests/phpunit/includes
daniel 175d548e61 Clean up PoolWorkArticleView
PoolWorkArticleView needs some cleanup before we can make it
cache output for old revisiosn (T244058).

This patch does doe following:
* apply dependency injection
* remove backwards compatibility code for legacy constructor calls
* mark PoolWorkArticleView as @internal (unused in extensions)
* remove audience check (to be done by caller)
* no longer set $wgUseFileCache to false.

For $wgUseFileCache, it seems like this has had no effect for a long
time. It would be set to false only on a cache miss during a page view.
But the file cache is only updated via HtmlCacheUpdater on edit and
purge.

Bug: T244058
Change-Id: Ief467562af0aa2f88ff7b42469d0273d2a1dcf7a
2020-11-16 12:06:20 +01:00
..
actions Use ::class together with createMock in unit tests 2020-10-30 14:45:37 +01:00
api Make use of native array_column() function where possible 2020-11-11 22:48:53 +00:00
auth Merge "Make unit tests assertion about assertNotEquals more strict" 2020-11-02 00:37:36 +00:00
block Inject UserFactory into BlockErrorFormatter 2020-10-13 20:09:52 +00:00
cache MCR import 2020-07-18 20:34:16 -04:00
changes Convert PageProps to a service 2020-08-12 21:21:53 +00:00
changetags Merge "me/contributions: filter by tag" 2020-07-06 06:01:52 +00:00
collation MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
config MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
content Make WikitextContentTest set the context title to avoid failures 2020-10-20 16:13:42 -07:00
context RequestContextTest: No need to set $wgUser 2020-09-13 23:18:17 +00:00
db Make unit tests assertion about assertNotEquals more strict 2020-11-01 23:12:06 +00:00
debug MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
deferred MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
diff Make use of array deconstruction directly in foreach, if possible 2020-11-12 18:38:06 +00:00
editpage MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
exception Make unit tests assertion about assertNotEquals more strict 2020-11-01 23:12:06 +00:00
externalstore MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
filebackend Merge "Make unit tests assertion about assertNotEquals more strict" 2020-11-02 00:37:36 +00:00
filerepo filerepo: clean up shared cache keys to avoid key metrics clutter 2020-10-21 13:29:15 -07:00
GlobalFunctions Remove deprecated wfForeignMemcKey() 2020-10-26 19:33:29 +00:00
HookContainer Prevent service injection to LoadExtensionSchemaUpdates hook 2020-09-18 08:01:52 +10:00
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 Check for unknown slot. 2020-07-20 10:39:28 -04:00
interwiki MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
jobqueue Make use of array deconstruction directly in foreach, if possible 2020-11-12 18:38:06 +00:00
language MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
libs Merge "resourceloader: Remove wfExpandUrl() coupling from CSSMin" 2020-11-13 07:07:49 +00:00
linkeddata Fix broken PHPDoc comments that don't start with /** 2020-07-23 16:09:41 +00:00
linker Replace wfGetDB with LoadBalancer in LinkCache service 2020-08-26 19:58:48 +02:00
logging Remove use of $wgUser from LogFormatterTest, unneeded 2020-09-14 20:26:13 +00:00
mail MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
media Make unit tests assertion about assertNotEquals more strict 2020-11-01 23:12:06 +00:00
Message MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
Navigation MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
objectcache MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
page Clean up PoolWorkArticleView 2020-11-16 12:06:20 +01:00
pager
ParamValidator/TypeDef Add API validator for titles 2020-11-06 14:09:04 -08:00
parser Safe ParserOutput extension data and JsonUnserializable helper. 2020-11-10 11:21:09 -07:00
password MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
Permissions PermissionManager: Allow sysops to view deleted config pages 2020-10-20 21:57:18 +00:00
poolcounter Clean up PoolWorkArticleView 2020-11-16 12:06:20 +01:00
preferences MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
rcfeed MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
registration MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
resourceloader Only preload logo if the optional logo feature is enabled. 2020-10-21 13:50:25 -04:00
Rest Handle CORS preflight request and prevent anon users from unsafe methods 2020-09-21 19:29:40 -04:00
Revision Improve docs about @param/@return object $row to stdClass 2020-11-13 00:08:21 +01:00
search search: Fix PrefixSearch totally ignoring input like "[[Foo]]" 2020-08-20 10:50:52 +02:00
session Make unit tests assertion about assertNotEquals more strict 2020-11-01 23:12:06 +00:00
shell Fixes shell edge-cases in Windows 2020-08-26 15:04:07 +10:00
site MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
skins Require Skin name when passing options to Skin constructor 2020-09-18 15:57:03 +00:00
sparql Whitespace cleanup: Use tabs for indentation, avoid double spaces 2020-06-27 07:53:07 +00:00
specialpage Merge "Filter invalid namespace on Special:RecentChanges and friend" 2020-08-12 01:42:54 +00:00
specials Avoid redirecting Special:MyLanguage when getting a special page 2020-11-13 00:00:02 +01:00
Storage Add mw-reverted change tag 2020-08-31 13:40:50 +00:00
title Remove $wgAllowImageMoving, deprecated 2020-09-14 01:21:50 +00:00
upload Fix tests assume badaccess-groups message in singular form 2020-10-30 17:20:54 +01:00
user EditPage: Add two more constraints 2020-11-11 23:15:42 +00:00
utils Make use of array deconstruction directly in foreach, if possible 2020-11-12 18:38:06 +00:00
watcheditem Merge "Use LinkBatchFactory in WatchedItemStore" 2020-11-06 21:24:23 +00:00
ActorMigrationTest.php Inject UserFactory into ActorMigration 2020-10-13 19:34:19 +00:00
ActorMigrationTest.sql
AutoLoaderTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
AutopromoteTest.php Merge "UserEditTracker: Minor code clean up and follow-ups" 2020-09-28 20:35:39 +00:00
CategoryTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
CommentStoreCommentTest.php
CommentStoreTest.php Remove CommentStore::newKey, deprecated and unused 2020-02-20 02:00:15 +00:00
CommentStoreTest.sql
ContentSecurityPolicyTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
DeprecatedGlobalTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
DiffHistoryBlobTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
EditPageConstraintsTest.php EditPage: Add two more constraints 2020-11-11 23:15:42 +00:00
EditPageTest.php EditPage: Migrate more checks to constraint 2020-10-26 22:01:05 +00:00
ExportTest.php Explicitly wrap some XML calls in libxml_disable_entity_loader() 2020-09-20 15:57:14 +00:00
ExtraParserTest.php Remove hard deprecated old SpecialPageFactory 2020-07-27 15:01:35 +00:00
FauxRequestTest.php Fix visibility of setUp/tearDown 2020-06-16 21:02:05 +02:00
GitInfoTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
HooksTest.php HookContainer: fix clear() and scopedRegister(). 2020-09-08 21:07:59 +02:00
HtmlTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
LinkerTest.php Drop the LinkBegin and LinkEnd hooks, deprecated since 1.28 2020-07-29 11:25:49 +01:00
LinkFilterTest.php
ListToggleTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
MagicWordFactoryTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
MediaWikiServicesTest.php Merge "MediaWikiServicesTest: newMediaWikiServices never has parameters passed" 2020-07-08 07:27:35 +00:00
MediaWikiTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
MediaWikiVersionFetcherTest.php Provide MW_VERSION and deprecate fake global $wgVersion 2020-02-25 01:55:21 +00:00
MergeHistoryTest.php Inject WikiPageFactory into MergeHistory/MovePage 2020-11-11 22:10:47 +01:00
MessageTest.php Replace all call_user_func(_array) in all tests 2020-06-06 18:41:20 +02:00
MovePageTest.php Add delete-redirect for deleting single-rev redirects during moves 2020-09-04 03:50:17 +00:00
MultiHttpClientTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
MWTimestampTest.php
OutputPageTest.php Hard deprecation of Language::convertTitle(), 2020-10-20 16:49:17 -04:00
PagePropsTest.php Replace tabs with spaces 2020-09-04 18:04:07 +02:00
PrefixSearchTest.php Fix tests/ PSR12.Properties.ConstantVisibility.NotFound 2020-05-16 04:30:21 +01:00
ReadOnlyModeTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
RevisionDbTest.php Hard deprecate the rest of the Revision class 2020-07-02 09:02:02 +00:00
RevisionTest.php Hard deprecate the rest of the Revision class 2020-07-02 09:02:02 +00:00
RevisionTestModifyableContent.php Fix tests/ PSR12.Properties.ConstantVisibility.NotFound 2020-05-16 04:30:21 +01:00
RevisionTestModifyableContentHandler.php
SampleTest.php
SiteStatsTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
StatusTest.php [StatusTest] Replace ReflectionMethod with TestingAccessWrapper 2020-10-30 14:02:10 +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
TestLogger.php Replace all call_user_func(_array) in all tests 2020-06-06 18:41:20 +02:00
TestUser.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
TestUserRegistry.php Remove documentation that literally repeats the code 2020-10-27 19:20:26 +00:00
TimeAdjustTest.php Remove unneeded ::setUp and ::tearDown methods that only call parent 2020-06-07 10:09:32 +00:00
TitleMethodsTest.php Fix visibility of setUp/tearDown 2020-06-16 21:02:05 +02:00
TitleTest.php Correct position of $expected and $actual in TitleTest::testGetCascadeProtectionSources() 2020-10-03 18:23:00 +01:00
WebRequestTest.php Make WebRequest::getAcceptLang() return floats instead of strings 2020-07-14 19:10:24 +00:00
WikiMapTest.php Fix visibility of setUp/tearDown 2020-06-16 21:02:05 +02:00
WikiReferenceTest.php
XmlTest.php Drop down lists: Do not use the value for 'other' as option group 2020-09-16 19:30:43 +00:00