diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-05-01 15:17:42 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-05-01 15:17:42 -0400 |
commit | f7d4cf9ed0ae68fec630d14e8f6aade38e49f036 (patch) | |
tree | a730c57badbe0e2f0f064ca2006c82d4b6ed54ea /extensions/WikiEditor/tests/selenium/WikiEditorTestSuite.php | |
parent | aee35e4a93d105024bcae947cd8b16c962191f5c (diff) | |
parent | 5d1e7dd0ccda0984ccf3e8e3d0f88ac888b05819 (diff) |
Merge commit '5d1e7'
Diffstat (limited to 'extensions/WikiEditor/tests/selenium/WikiEditorTestSuite.php')
-rw-r--r-- | extensions/WikiEditor/tests/selenium/WikiEditorTestSuite.php | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/extensions/WikiEditor/tests/selenium/WikiEditorTestSuite.php b/extensions/WikiEditor/tests/selenium/WikiEditorTestSuite.php new file mode 100644 index 00000000..14a8bf20 --- /dev/null +++ b/extensions/WikiEditor/tests/selenium/WikiEditorTestSuite.php @@ -0,0 +1,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 ); + } + + +} |