mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-23 23:24:39 +00:00
Merge "PopupsContextTestWrapper: Remove null check for $gadgetsIntegration"
This commit is contained in:
commit
e4d39c1af9
|
@ -42,7 +42,7 @@ class PopupsContextTestWrapper extends PopupsContext {
|
||||||
*
|
*
|
||||||
* @param Config $config MediaWiki config
|
* @param Config $config MediaWiki config
|
||||||
* @param ExtensionRegistry $extensionRegistry MediaWiki extension registry
|
* @param ExtensionRegistry $extensionRegistry MediaWiki extension registry
|
||||||
* @param PopupsGadgetsIntegration|null $gadgetsIntegration Gadgets integration helper
|
* @param PopupsGadgetsIntegration $gadgetsIntegration Gadgets integration helper
|
||||||
* @param UserOptionsLookup $userOptionsLookup
|
* @param UserOptionsLookup $userOptionsLookup
|
||||||
*/
|
*/
|
||||||
public function __construct(
|
public function __construct(
|
||||||
|
@ -51,8 +51,7 @@ class PopupsContextTestWrapper extends PopupsContext {
|
||||||
PopupsGadgetsIntegration $gadgetsIntegration,
|
PopupsGadgetsIntegration $gadgetsIntegration,
|
||||||
UserOptionsLookup $userOptionsLookup
|
UserOptionsLookup $userOptionsLookup
|
||||||
) {
|
) {
|
||||||
$gadgetsIntegration = $gadgetsIntegration ?:
|
$gadgetsIntegration = $gadgetsIntegration;
|
||||||
new PopupsGadgetsIntegration( $config, $extensionRegistry );
|
|
||||||
|
|
||||||
parent::__construct(
|
parent::__construct(
|
||||||
$config,
|
$config,
|
||||||
|
|
Loading…
Reference in a new issue