mediawiki-skins-Vector/tests/phpunit/unit/FeatureManagement
Nicholas Ray 7e0dd79d5a Convert LimitedWidthRequirement to UserPreferenceRequirement
Generalize LimitedWidthRequirement into a more reusable
UserPreferenceRequirement that can be used by both the limited width feature and
the persistent pinning feature (and possibly others in the future).

* Removes existing logic that checks whether the option is not null. Given that
skin.json sets the default [1], presumably this isn't needed.

* Adds unit test

[1] 65af26a258/skin.json (L163)

Bug: T322051
Change-Id: I7f228cf81a65b2eb22dbe94d2384b6c9f6da91f2
2022-12-01 16:31:47 -07:00
..
Requirements Convert LimitedWidthRequirement to UserPreferenceRequirement 2022-12-01 16:31:47 -07:00
FeatureManagerTest.php FeatureManagement: All features have an associated class on the body tag 2022-09-01 22:09:48 +00:00