summaryrefslogtreecommitdiff
path: root/extensions/WikiEditor/tests/selenium/WikiEditorSeleniumConfig.php
blob: 534d135172cb96f9de584b1536f103472597f60a (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
<?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 ),
				'toc' => array( 'global' => false, 'user' => false ),
				'highlight' => array( 'global' => false, 'user' => false ),
				'templateEditor' => 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; 
	}
}