30 lines
No EOL
960 B
PHP
30 lines
No EOL
960 B
PHP
<?php
|
|
class SimpleSeleniumConfig {
|
|
|
|
public static function getSettings(&$includeFiles, &$globalConfigs, &$resourceFiles) {
|
|
global $IP;
|
|
$includes = array(
|
|
//files that needed to be included would go here
|
|
);
|
|
$configs = array(
|
|
'wgDBprefix' => 'mw_',
|
|
'wgDBTableOptions' => 'ENGINE=InnoDB, DEFAULT CHARSET=binary',
|
|
'wgDBmysql5' => 'false',
|
|
'wgMainCacheType' => 'CACHE_NONE',
|
|
'wgParserCacheType' => 'CACHE_NONE',
|
|
'wgMemCachedServers'=> array(),
|
|
'wgLanguageCode' => 'en',
|
|
'wgSitename' => 'test_wiki',
|
|
'wgDefaultSkin' => 'chick'
|
|
);
|
|
$resources = array(
|
|
'db' => "$IP/tests/selenium/data/SimpleSeleniumTestDB.sql",
|
|
'images' => "$IP/tests/selenium/data/SimpleSeleniumTestImages.zip"
|
|
);
|
|
|
|
$includeFiles = array_merge( $includeFiles, $includes );
|
|
$globalConfigs = array_merge( $globalConfigs, $configs);
|
|
$resourceFiles = array_merge( $resourceFiles, $resources );
|
|
return true;
|
|
}
|
|
} |