Fix empty provider in HooksTest

This was not doing anything any more after I50b20ed.

Change-Id: I5af8f9cd2f6fb94b3bb007b72417dcb7a7f67ac9
This commit is contained in:
thiemowmde 2024-02-20 10:46:48 +01:00 committed by Thiemo Kreuz (WMDE)
parent 8d70615b5e
commit 2216426f61

View file

@ -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!
}