~ubuntu-branches/ubuntu/trusty/mediawiki/trusty

« back to all changes in this revision

Viewing changes to tests/selenium/suites/SimpleSeleniumConfig.php

  • Committer: Package Import Robot
  • Author(s): Thorsten Glaser
  • Date: 2014-03-28 09:56:29 UTC
  • mfrom: (1.3.14)
  • Revision ID: package-import@ubuntu.com-20140328095629-1526y9tchdd507id
Tags: 1:1.19.14+dfsg-1
* New upstream security fix release (Closes: #742857):
  - (bug 62497) SECURITY: Add CSRF token on Special:ChangePassword
  - (bug 62467) Set a title for the context during import on the cli
* Use upstream-provided signing key bundle

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
class SimpleSeleniumConfig {
 
3
        
 
4
        public static function getSettings(&$includeFiles, &$globalConfigs, &$resourceFiles) {
 
5
                global $IP;
 
6
                $includes = array(
 
7
                        //files that needed to be included would go here
 
8
                );
 
9
                $configs = array(
 
10
                        'wgDBprefix'        => 'mw_',
 
11
                        'wgDBTableOptions'  => 'ENGINE=InnoDB, DEFAULT CHARSET=binary',
 
12
                        'wgDBmysql5'        => 'false',
 
13
                        'wgMainCacheType'   => 'CACHE_NONE',
 
14
                        'wgParserCacheType' => 'CACHE_NONE',
 
15
                        'wgMemCachedServers'=> array(),
 
16
                        'wgLanguageCode'    => 'en',
 
17
                        'wgSitename'        => 'test_wiki',
 
18
                        'wgDefaultSkin'     => 'chick'
 
19
                );
 
20
                $resources = array(
 
21
                        'db' => "$IP/tests/selenium/data/SimpleSeleniumTestDB.sql",
 
22
                        'images' => "$IP/tests/selenium/data/SimpleSeleniumTestImages.zip"
 
23
                );
 
24
                
 
25
                $includeFiles = array_merge( $includeFiles, $includes );
 
26
                $globalConfigs = array_merge( $globalConfigs, $configs);
 
27
                $resourceFiles = array_merge( $resourceFiles, $resources );
 
28
                return true; 
 
29
        }
 
30
}
 
 
b'\\ No newline at end of file'