Merge "Fix empty provider in HooksTest"

This commit is contained in:
jenkins-bot 2024-03-21 19:01:54 +00:00 committed by Gerrit Code Review
commit 826cac1fc8

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