mediawiki-extensions-WikiEd.../tests/selenium/WikiEditorSeleniumConfig.php
Derk-Jan Hartman e53521b32b WikiEditor: Remove unmaintained template editor modules
Change-Id: I47119d6cfdde4b40ff5b07be0c7d327b80598142
2014-04-03 17:11:10 +02:00

26 lines
743 B
PHP

<?php
class WikiEditorSeleniumConfig {
public static function getSettings( &$includeFiles, &$globalConfigs ) {
$includes = array(
'extensions/Vector/Vector.php',
'extensions/WikiEditor/WikiEditor.php'
);
$configs = array(
'wgDefaultSkin' => 'vector',
'wgWikiEditorFeatures' => array(
'toolbar' => array( 'global' => true, 'user' => true ),
'highlight' => array( 'global' => false, 'user' => false ),
'dialogs' => array( 'global' => true, 'user' => true )
),
'wgVectorFeatures' => array(
'editwarning' => array( 'global' => false, 'user' => false )
)
);
$includeFiles = array_merge( $includeFiles, $includes );
$globalConfigs = array_merge( $globalConfigs, $configs );
return true;
}
}