wiki.techinc.nl/includes/Request
Daimona Eaytoy b8e380f775 Refactor SpecialPreferencesTest
Make it extend SpecialPageTestBase and simplify it accordingly, removing
a lot of things that are no longer needed. I'm not even sure if this
test still serves a purpose, but at least it should be easier to
maintain now. This also fixes a test failure when
UniversalLanguageSelector is enabled due to a ULS hook error.

This approach still needs a hack for overriding UserOptionsManager,
because it's used in a lot of places with lots of expectations and
global state, and the mock would need to be much more complex for that.

Also:
- Remove unchecked exceptions from doc comments.
- Fix indentation of a conditional where the second line of the
  condition was indented the same as the body, which made it hard to
  read.
- Add some return typehints to various methods. These make it easier to
  write tests because if a method is return-typehinted, PHPUnit will
  mock the return value automatically, instead of returning null and
  leaving it up to the developer to provide a mock explicitly.
- Add string typehint to Skin::normalizeKey. The value is already
  assumed to be a string, and passing null to strtolower emits a
  deprecation notice in PHP 8.1.

Change-Id: I80723b886b2b5a5d75cbb73571e1b19ea4a09af5
2023-07-19 01:28:30 +02:00
..
ContentSecurityPolicy.php Reorg: Move WebResponse and FauxResponse to Request/ 2023-03-01 18:18:11 +01:00
DerivativeRequest.php Refactor SpecialPreferencesTest 2023-07-19 01:28:30 +02:00
FauxRequest.php Replace some more usages of deprecated MWException 2023-06-09 02:07:08 +02:00
FauxRequestUpload.php Reorg: Move some of request related classes to MediaWiki/Request 2022-10-28 10:15:31 +00:00
FauxResponse.php Replace substr with cleaner string methods 2023-05-20 15:40:21 +02:00
HeaderCallback.php Reorg: Move HeaderCallback to Request directory 2022-11-08 10:53:27 +01:00
PathRouter.php Replace substr with cleaner string methods 2023-05-20 15:40:21 +02:00
WebRequestUpload.php Reorg: Move some of request related classes to MediaWiki/Request 2022-10-28 10:15:31 +00:00
WebResponse.php Replace internal Hooks::runner 2023-05-11 06:17:38 +00:00