overrideConfigValues( $config ); $vars = []; ( new Hooks() )->onResourceLoaderGetConfigVars( $vars, '', new HashConfig() ); $this->assertArrayHasKey( 'wgVisualEditorConfig', $vars ); $veConfig = $vars['wgVisualEditorConfig']; foreach ( $expected as $name => $value ) { $this->assertArrayHasKey( $name, $veConfig ); $this->assertSame( $value, $veConfig[$name] ); } } public static function provideOnResourceLoaderGetConfigVars() { yield [ [], [] ]; // TODO: test a lot more config! } }