wiki.techinc.nl/tests/phpunit/includes/ResourceLoader
Daimona Eaytoy f00ca670bc Fix DB usage in non-database tests
Some non-database tests are currently accessing the database. Fixing
them means either avoiding the DB access if it's possible and makes
sense for the test, or adding the `Database` group otherwise. In
particular:

- Replace global/static functions with services in a couple places to
  make testing easier.
- RevisionRendererTest needs to be in the Database group due to heavy
  global state usage (including DB) by Parser
- ActionFactoryIntegrationTest and SpecialPageFatalTest should be in
  the database group because they test many different classes, and some
  of which may use the database in the tested methods.
- SpecialUserLogoutTest must be in the database group because of User.
- Some pager tests are using wfGetDB directly.

Change-Id: I96eb2acf9a2cbfd17e81225db2773d5e8e30260b
2023-07-21 13:52:47 +02:00
..
templates ResourceLoader namespace (attempt 2) 2022-05-24 15:41:46 +00:00
ClientHtmlTest.php tests: Use MainConfigNames consts to refer config names 2023-06-19 20:21:08 +00:00
ContextTest.php tests: Use MainConfigNames consts to refer config names 2023-06-19 20:21:08 +00:00
DerivativeContextTest.php build: Updating mediawiki/mediawiki-codesniffer to 41.0.0 2023-03-11 19:04:09 +00:00
FileModuleTest.php ResourceLoader: Allow FileModule scripts to be generated with a callback 2023-05-09 11:47:40 +10:00
ImageModuleTest.php ResourceLoader: Remove unused rasterized URL in ImageModule::getCssDeclarations 2023-07-13 01:52:57 +00:00
LessVarFileModuleTest.php ResourceLoader: Hoist and simplify @covers in test cases 2022-08-23 23:59:17 +00:00
MessageBlobStoreTest.php objectcache: Remove $wgMainWANCache and $wgWANObjectCaches 2023-03-07 22:47:04 +00:00
ModuleTest.php ResourceLoader: Hoist and simplify @covers in test cases 2022-08-23 23:59:17 +00:00
OOUIImageModuleTest.php ResourceLoader: Remove SVG fallback hack from ImageModule 2023-02-08 01:32:07 +01:00
ResourceLoaderTest.php Fix DB usage in non-database tests 2023-07-21 13:52:47 +02:00
SkinModuleTest.php Create mediawiki.tempUserBanner module 2023-06-30 00:41:46 +00:00
StartUpModuleTest.php ResourceLoader: Raise MW JavaScript startup requirement to ES6 2023-03-30 14:26:05 +01:00
UserOptionsModuleTest.php ResourceLoader namespace (attempt 2) 2022-05-24 15:41:46 +00:00
WikiModuleTest.php tests: Use MainConfigNames consts to refer config names 2023-06-19 20:21:08 +00:00