wiki.techinc.nl/tests/phpunit/includes
Tim Starling 5322107191 Reset services before every test
Trying to avoid resetting services introduces a lot of complexity and
several bugs. We were doing a reset for 70% of @group Database tests
anyway.

Instead:

* Reset services at the start of MediaWikiTestCase::run().
* Capture the actual original service container instead of making a
  special shared service container.
* The test-isolated local service container can now only be initialised
  non-statically. Revert the recent conversion of overrideMwServices()
  to static.
* Store a reference to the local service container in the test case
  object. In MediaWikiTestCase, always use the original or local service
  container directly, to avoid confusion about which one is active at
  the time.
* Remove a lot of unnecessary teardown
* Always call ServiceContainer::destroy() before forceGlobalInstance()
  since the memory is not otherwise freed.

Change-Id: I4a17c1c7ec92c14e3bc471f0216473ebe19477b9
2018-09-03 16:38:58 +00:00
..
actions Fix MediaWiki.Commenting.LicenseComment.InvalidLicenseTag errors 2018-05-23 16:23:42 -07:00
api Avoid constructing Title objects in data providers 2018-09-03 16:36:49 +00:00
auth Clean up AuthManagerTest a bit 2018-08-06 19:15:36 +03:00
cache Mass conversion of $wgContLang to service 2018-08-11 22:44:29 -06:00
changes
changetags Disable PHPUnit tests that fail under postgres 2018-08-01 22:22:15 +00:00
collation Use PHP 7 "\u{NNNN}" Unicode codepoint escapes in string literals 2018-06-04 16:20:13 +00:00
composer
config
content [MCR] Render multi-slot diffs 2018-08-20 15:39:12 +02:00
context
db rdbms: add more comments and sanity checks for CONN_TRX_AUTOCOMMIT 2018-08-09 01:39:07 +00:00
debug Add helper trait for deprecating properties 2018-07-18 15:15:46 +02:00
deferred rdbms: rename onTransactionIdle() to onTransactionCommitOrIdle() 2018-05-09 21:07:06 +00:00
diff Avoid constructing Title objects in data providers 2018-09-03 16:36:49 +00:00
editpage
exception
externalstore
filebackend Disallow empty paths in LockManager 2018-07-26 11:02:43 -07:00
filerepo
GlobalFunctions Fix wfDebug() test so that it works with overridden SPI 2018-08-31 15:02:38 +10:00
htmlform thiemowmde's legal name changed 2018-07-24 06:07:38 +00:00
http Replace HTTP by HTTPS 2018-05-22 12:14:14 +02:00
import
installer
interwiki Merge "Hard deprecate Interwiki static methods" 2018-06-09 09:33:09 +00:00
jobqueue Fix MediaWiki.Commenting.LicenseComment.InvalidLicenseTag errors 2018-05-23 16:23:42 -07:00
json
libs Support nested arrays in StaticArrayWriter 2018-08-27 22:23:02 +00:00
linkeddata
linker Improve LinkRenderer::getLinkText() coverage 2018-06-13 01:30:04 -07:00
logging Use PHP 7 '??' operator instead of '?:' with 'isset()' where convenient 2018-05-30 18:06:13 -07:00
mail mail: Always quote uncoded names in MailAddress 2018-04-24 21:29:25 +00:00
media SVG: Allow , as separator in viewBox attribute value 2018-08-11 00:16:43 +02:00
objectcache
page Add tests for article viewing 2018-08-28 19:22:26 +02:00
pager
parser Make HTML generation in RenderedRevision optional 2018-08-31 10:48:41 +00:00
password Merge "password: Move commonpasswords.cdb to includes/password/" 2018-08-14 23:53:19 +00:00
poolcounter
preferences Use ParserFactory in a bunch of places 2018-08-11 00:16:17 -06:00
rcfeed
registration Merge "registration: Validate no duplicate keys exist in extension.json" 2018-07-18 09:47:07 +00:00
resourceloader resourceloader: Remove selective build optimisation from getModuleContent() 2018-08-30 21:02:57 +00:00
Revision Make HTML generation in RenderedRevision optional 2018-08-31 10:48:41 +00:00
search Reset services before every test 2018-09-03 16:38:58 +00:00
services [MCR] Allow extensions to manipulate service instances 2018-06-15 16:06:38 +02:00
session Add PasswordFactory to MediaWikiServices 2018-08-02 14:46:35 +01:00
shell Deprecate wfShellWikiCmd() 2018-04-16 16:38:05 +00:00
site Replace wfGetLB 2018-05-02 22:30:24 +02:00
skins skins: Move default style modules to getDefaultModules 2018-05-04 23:52:02 +00:00
sparql
specialpage Make SpecialPageFactory a service 2018-08-17 11:12:23 -07:00
specials tests: Replace Bugddddd with Tddddd in test names, test strings 2018-08-20 21:27:20 +00:00
Storage Reset services before every test 2018-09-03 16:38:58 +00:00
tidy RemexCompatMunger: Don't call endTag() in case B/b 2018-08-07 14:07:31 +10:00
title TitleFormatter: Implement fbc1449653 and unify prefix logic 2018-08-17 17:43:52 -07:00
upload tests: Replace Bugddddd with Tddddd in test names, test strings 2018-08-20 21:27:20 +00:00
user Fix common typos in code 2018-09-02 09:03:07 +00:00
utils Have ClassCollector ignore PHP 7 anonymous classes 2018-05-01 13:13:37 -04:00
watcheditem Use constants for rc_patrolled values instead of numbers 2018-04-13 23:56:35 +02:00
ActorMigrationTest.php Introduce new schema flags and use them in RevisionStore. 2018-07-02 17:20:14 +02:00
AutoLoaderTest.php Improve AutoLoader test coverage 2018-05-26 21:29:36 -07:00
AutopromoteTest.php
BlockTest.php tests: Replace Bugddddd with Tddddd in test names, test strings 2018-08-20 21:27:20 +00:00
CommentStoreTest.php Mass conversion of $wgContLang to service 2018-08-11 22:44:29 -06:00
ContentSecurityPolicyTest.php CSP: In tests, use setMwGlobals() instead of manual set+undo 2018-08-19 01:43:52 +01:00
DeprecatedGlobalTest.php
DiffHistoryBlobTest.php
EditPageTest.php Fix typos 2018-08-14 09:52:19 +00:00
ExportTest.php Mass conversion of $wgContLang to service 2018-08-11 22:44:29 -06:00
ExtraParserTest.php MagicWordFactory to replace MagicWord static members/methods 2018-07-30 21:20:43 +03:00
FauxRequestTest.php
FauxResponseTest.php
FormOptionsInitializationTest.php
FormOptionsTest.php
GitInfoTest.php Allow tests to run with a non-writable source tree 2018-08-30 10:48:50 +10:00
HooksTest.php Complete test coverage of Hooks class 2018-05-26 23:38:28 -07:00
HtmlTest.php Html: Reject </script> from inlineScript() and leave rest unescaped 2018-08-30 00:10:35 +01:00
LicensesTest.php
LinkerTest.php Remove deprecated Linker::getLinkColour() 2018-06-13 01:30:04 -07:00
LinkFilterTest.php
ListToggleTest.php
MediaWikiServicesTest.php Don't require a list of services in tests 2018-08-10 04:28:31 +00:00
MediaWikiTest.php Avoid a redirect loop when the request URL is not normalized 2018-07-16 15:55:59 +10:00
MediaWikiVersionFetcherTest.php Improve MediaWikiVersionFetcherTest 2018-08-10 11:26:57 +03:00
MergeHistoryTest.php MergeHistory: Fix flaky test due to relative timestamp 2018-08-15 02:16:02 +01:00
MessageTest.php Use ParserFactory in a bunch of places 2018-08-11 00:16:17 -06:00
MovePageTest.php tests: Add some more @covers tags 2018-05-07 17:49:01 +00:00
MultiHttpClientTest.php Added non-parallel fallback to MultiHttpClient when curl is unavailable 2018-07-23 00:19:59 +00:00
MWNamespaceTest.php MWNamespace: Add getCategoryLinkType() method 2018-06-29 15:37:11 +00:00
MWTimestampTest.php
OutputPageTest.php resourceloader: Remove unused static SkinModule::getLogo method 2018-08-28 23:50:50 +01:00
PagePropsTest.php Automatically reset namespace caches when needed 2018-08-01 16:30:08 +03:00
PathRouterTest.php Avoid a redirect loop when the request URL is not normalized 2018-07-16 15:55:59 +10:00
PreferencesTest.php
PrefixSearchTest.php Reset services before every test 2018-09-03 16:38:58 +00:00
ReadOnlyModeTest.php
RevisionDbTestBase.php Avoid constructing Title objects in data providers 2018-09-03 16:36:49 +00:00
RevisionMcrDbTest.php MCR RevisionStore, multi content mode.. 2018-06-14 17:30:33 +02:00
RevisionMcrReadNewDbTest.php Introduce new schema flags and use them in RevisionStore. 2018-07-02 17:20:14 +02:00
RevisionMcrWriteBothDbTest.php [MCR] RevisionStore, enable insertions for new schema 2018-06-14 13:36:08 +00:00
RevisionNoContentModelDbTest.php Introduce per-schema unit tests for revision storage. 2018-06-07 13:31:16 +00:00
RevisionPreMcrDbTest.php Introduce per-schema unit tests for revision storage. 2018-06-07 13:31:16 +00:00
RevisionTest.php Use consistent caching strategy in Revision storage classes 2018-07-05 17:44:24 +02:00
RevisionTestModifyableContent.php
RevisionTestModifyableContentHandler.php
SampleTest.php Use setContentLang() instead of setMwGlobals() 2018-07-26 11:35:58 +00:00
SanitizerValidateEmailTest.php
ServiceWiringTest.php Alphabetize service lists 2018-08-09 22:19:58 -06:00
SiteConfigurationTest.php SiteConfiguration: Add test to confirm null as valid override 2018-04-24 18:31:30 +01:00
SiteStatsTest.php phpunit: Clear job queues in MediaWikiTestCase::setUp() 2018-04-24 00:46:19 +01:00
StatusTest.php
TemplateCategoriesTest.php
TemplateParserTest.php
TestLogger.php Fix PhanTypeMismatchDeclaredParam 2018-07-07 00:34:30 +00:00
TestUser.php Add PasswordFactory to MediaWikiServices 2018-08-02 14:46:35 +01:00
TestUserRegistry.php Use PHP 7 '??' operator instead of '?:' with 'isset()' where convenient 2018-05-30 18:06:13 -07:00
TimeAdjustTest.php Mass conversion of $wgContLang to service 2018-08-11 22:44:29 -06:00
TitleArrayFromResultTest.php
TitleMethodsTest.php Automatically reset namespace caches when needed 2018-08-01 16:30:08 +03:00
TitlePermissionTest.php title: Disable the failing tests from TitlePermissionTest 2018-08-16 13:05:09 +00:00
TitleTest.php Title: Fix isRawHtmlMessage() for messages with underscores 2018-08-31 09:45:01 -07:00
WebRequestTest.php WebRequest: Fix flaky testGetElapsedTime test case 2018-07-16 20:23:30 -07:00
WikiMapTest.php
WikiReferenceTest.php
XmlJsTest.php
XmlSelectTest.php
XmlTest.php Xml.php: Do not escape double quotes in $contents of Xml::element() 2018-05-23 20:03:54 +00:00