HomePhabricator

WikidataPageBanner hygiene - move non-hook methods

Authored by Sumit.

Description

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

Details