blob: 14a8bf20c2476173c56f18267e0e99f87f7e7e52 (
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
31
32
|
<?php
/**
* To configure MW for these tests
* 1) If you are running multiple test suites, add the following in LocalSettings.php
* require_once("extensions/WikiEditor/tests/selenium/WikiEditorSeleniumConfig.php");
* $wgSeleniumTestConfigs['WikiEditorTestSuite'] = 'WikiEditorSeleniumConfig::getSettings';
* OR
* 2) Add the following to your Localsettings.php
* require_once( "$IP/extensions/Vector/Vector.php" );
* require_once( "$IP/extensions/WikiEditor/WikiEditor.php" );
* $wgDefaultSkin = 'vector';
* $wgVectorFeatures['editwarning'] = array( 'global' => false, 'user' => false );
* $wgWikiEditorFeatures['toolbar'] = array( 'global' => true, 'user' => true );
* $wgWikiEditorFeatures['dialogs'] = array( 'global' => true, 'user' => true );
*
*/
class WikiEditorTestSuite extends SeleniumTestSuite
{
public function setUp() {
$this->setLoginBeforeTests( false );
parent::setUp();
}
public function addTests() {
$testFiles = array(
'extensions/WikiEditor/tests/selenium/WikiDialogs_Links.php'
);
parent::addTestFiles( $testFiles );
}
}
|