From 2216426f61a6510d19545f56c3e4bb8966909c5d Mon Sep 17 00:00:00 2001 From: thiemowmde Date: Tue, 20 Feb 2024 10:46:48 +0100 Subject: [PATCH] Fix empty provider in HooksTest This was not doing anything any more after I50b20ed. Change-Id: I5af8f9cd2f6fb94b3bb007b72417dcb7a7f67ac9 --- tests/phpunit/integration/HooksTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/integration/HooksTest.php b/tests/phpunit/integration/HooksTest.php index 61e85937ef..caf9b5b391 100644 --- a/tests/phpunit/integration/HooksTest.php +++ b/tests/phpunit/integration/HooksTest.php @@ -2,6 +2,7 @@ namespace MediaWiki\Extension\VisualEditor\Tests; +use MediaWiki\Config\HashConfig; use MediaWiki\Extension\VisualEditor\Hooks; use MediaWikiIntegrationTestCase; @@ -18,7 +19,7 @@ class HooksTest extends MediaWikiIntegrationTestCase { $this->overrideConfigValues( $config ); $vars = []; - Hooks::onResourceLoaderGetConfigVars( $vars ); + ( new Hooks() )->onResourceLoaderGetConfigVars( $vars, '', new HashConfig() ); $this->assertArrayHasKey( 'wgVisualEditorConfig', $vars ); $veConfig = $vars['wgVisualEditorConfig']; @@ -30,6 +31,7 @@ class HooksTest extends MediaWikiIntegrationTestCase { } public static function provideOnResourceLoaderGetConfigVars() { + yield [ [], [] ]; // TODO: test a lot more config! }