MediaWiki  REL1_19
SimpleSeleniumConfig.php
Go to the documentation of this file.
00001 <?php
00002 class SimpleSeleniumConfig {
00003         
00004         public static function getSettings(&$includeFiles, &$globalConfigs, &$resourceFiles) {
00005                 global $IP;
00006                 $includes = array(
00007                         //files that needed to be included would go here
00008                 );
00009                 $configs = array(
00010                         'wgDBprefix'        => 'mw_',
00011                         'wgDBTableOptions'  => 'ENGINE=InnoDB, DEFAULT CHARSET=binary',
00012                         'wgDBmysql5'        => 'false',
00013                         'wgMainCacheType'   => 'CACHE_NONE',
00014                         'wgParserCacheType' => 'CACHE_NONE',
00015                         'wgMemCachedServers'=> array(),
00016                         'wgLanguageCode'    => 'en',
00017                         'wgSitename'        => 'test_wiki',
00018                         'wgDefaultSkin'     => 'chick'
00019                 );
00020                 $resources = array(
00021                         'db' => "$IP/tests/selenium/data/SimpleSeleniumTestDB.sql",
00022                         'images' => "$IP/tests/selenium/data/SimpleSeleniumTestImages.zip"
00023                 );
00024                 
00025                 $includeFiles = array_merge( $includeFiles, $includes );
00026                 $globalConfigs = array_merge( $globalConfigs, $configs);
00027                 $resourceFiles = array_merge( $resourceFiles, $resources );
00028                 return true; 
00029         }
00030 }