HomePhabricator

Updated mediawiki/extensions Project: mediawiki/extensions/WikidataPageBanner…

Authored by Sumit.

Description

Updated mediawiki/extensions Project: mediawiki/extensions/WikidataPageBanner eb064989652427e05999b95aa7d790cc559c4b22

WikidataPageBanner hygiene - move non-hook methods

Move non-hook functions from WikidataPageBanner.hooks.php to
WikidataPageBanner.functions.php. Add a static variable $wpbFunctionsClass which
stores the classname of functions class and which is used to call functions of
that class. This variable is being added to facilitate injecting a mock
classname while performing tests.
Modify tests.

Bug: T107755
Change-Id: I16ef2db74f34f122f83b3ace86c8b5edd17c3674