summaryrefslogtreecommitdiff
path: root/tests/selenium/suites/SimpleSeleniumConfig.php
blob: 54def35ac4c54ad395d7f166e9f8f174a09819a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?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; 
	}
}