mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-23 22:13:34 +00:00
Fix empty provider in HooksTest
This was not doing anything any more after I50b20ed. Change-Id: I5af8f9cd2f6fb94b3bb007b72417dcb7a7f67ac9
This commit is contained in:
parent
8d70615b5e
commit
2216426f61
|
@ -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!
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue