From 3098babc3530e145d02e0762150ad9a3e486d063 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Mon, 30 Apr 2012 09:29:45 +0200 Subject: [PATCH] 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 --- tests/phpunit/includes/PreferencesTest.php | 4 ++++ 1 file changed, 4 insertions(+) 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; } /** -- 2.20.1