mediawiki-skins-Vector/tests/phpunit/unit
Steph Toyofuku feb8cc90dc Allow disabling of night mode on certain pages via config
* Using the new ConfigHelper, support disabling night mode on certain
pages via configuration options
* In addition, adds test coverage for this case and the query parameter
case (in a new integration test file as we now require accessing the
service container for request context)
* Finally, supply a default configuration in skin.json with all the
values set to null

For the easiest possible approach while we evaulate our general feature
management system, this logic is handled inside of getFeatureBodyClass
using the new shouldDisable general function.  In the future, it may
make sense to break this out into its own requirement class, but for now
that feels premature

Bug: T359606
Change-Id: I3e7a4720ec3cc2afd9777e36f59aa56b682258f0
2024-03-28 16:37:30 -07:00
..
components Type hint UserIdentity in Requirements/Components 2024-03-13 21:59:40 +01:00
FeatureManagement Allow disabling of night mode on certain pages via config 2024-03-28 16:37:30 -07:00
Services test: Add PHPUnit tests for LanguageService 2024-02-12 16:25:43 +00:00
SkinVector22Test.php tests: Make PHPUnit data providers static 2023-05-20 11:11:30 +02:00