From: umherirrender Date: Mon, 30 Apr 2012 07:29:45 +0000 (+0200) Subject: enable email for PreferencesTest.php X-Git-Tag: 1.31.0-rc.0~23761^2 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=3098babc3530e145d02e0762150ad9a3e486d063;p=lhc%2Fweb%2Fwiklou.git enable email for PreferencesTest.php The tests in PreferencesTest.php checking email things, enable email to let the test run complete and not depend on the wiki setting. Change-Id: I21b34b31c52a10e0f4f6b918ee25d98a97ea5981 --- diff --git a/tests/phpunit/includes/PreferencesTest.php b/tests/phpunit/includes/PreferencesTest.php index 89d9e0c263..664f04adca 100644 --- a/tests/phpunit/includes/PreferencesTest.php +++ b/tests/phpunit/includes/PreferencesTest.php @@ -8,6 +8,7 @@ class PreferencesTest extends MediaWikiTestCase { function __construct() { parent::__construct(); + global $wgEnableEmail; $this->users['noemail'] = new User; @@ -23,6 +24,9 @@ class PreferencesTest extends MediaWikiTestCase { $this->context = new RequestContext; $this->context->setTitle( Title::newFromText('PreferencesTest') ); + + //some tests depends on email setting + $wgEnableEmail = true; } /**