overrideConfigValues( $config ); $vars = []; Hooks::onResourceLoaderGetConfigVars( $vars ); $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() { // TODO: test a lot more config! } }