summaryrefslogtreecommitdiff
path: root/extensions/WikiEditor/tests/selenium/WikiEditorSeleniumConfig.php
blob: ad4be4897736d67335b843c6c7fa0e16ecec6a34 (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;
	}
}