mediawiki-extensions-WikiEd.../tests/selenium/WikiEditorSeleniumConfig.php

25 lines
679 B
PHP
Raw Normal View History

<?php
class WikiEditorSeleniumConfig {
2011-09-13 08:56:32 +00:00
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 ),
'dialogs' => array( 'global' => true, 'user' => true )
),
'wgVectorFeatures' => array(
'editwarning' => array( 'global' => false, 'user' => false )
)
);
$includeFiles = array_merge( $includeFiles, $includes );
2011-09-13 08:56:32 +00:00
$globalConfigs = array_merge( $globalConfigs, $configs );
return true;
}
}