mediawiki-skins-Vector/tests/phpunit/integration
Sam Smith b46751d4ed hooks: Don't use SkinVersionLookup directly
The feature manager abstracts away how a feature is enabled from the
consumer of that feature. Accordingly, replace direct instantiation of
SkinVersionLookup with usage of the Vector.FeatureManager service.

Supporting changes:

- Add Vector\VectorServices, a simple wrapper around
  MediaWiki\MediaWikiServices that allows us to both document and
  type-hint services specific to Vector

- Add Vector\Hooks::isSkinVersionLegacy to minimise repetition

Additional changes:

- Make the MakeGlobalVariablesScript hook handler return early if the
  user isn't using the Vector skin like the other hook handlers

Bug: T256100
Change-Id: I93b5ef39802323c7ac658af8fa7cc312fff68aa7
2020-08-18 11:40:48 +01:00
..
FeatureManagement/Requirements [fix] "Existing account only" skin version config 2020-04-29 18:36:03 +00:00
SkinVectorTest.php Refactor: Replace PHP complexity with JS simplicity 2020-07-31 22:15:08 +00:00
SkinVersionLookupTest.php [fix] "Existing account only" skin version config 2020-04-29 18:36:03 +00:00
VectorHooksTest.php hooks: Don't use SkinVersionLookup directly 2020-08-18 11:40:48 +01:00