From 084b429175746cb3b2dbd29efa50a1fd8354c535 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sat, 11 May 2013 22:14:18 +0200 Subject: [PATCH] Fix unit tests when $wgEmailAuthentication is set to false Since d2a5cf3 (I0b906b23de), 'emailaddress' and 'emailauthentication' fields don't have any more CSS classes when $wgEmailAuthentication is set to false which is breaking the tests. Force $wgEmailAuthentication to true, so that the tests work in all cases. Change-Id: Idc156f88ff1bc8595009056166f13191cf5c5c25 --- tests/phpunit/includes/PreferencesTest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/includes/PreferencesTest.php b/tests/phpunit/includes/PreferencesTest.php index b909f26b38..392ad0808d 100644 --- a/tests/phpunit/includes/PreferencesTest.php +++ b/tests/phpunit/includes/PreferencesTest.php @@ -30,7 +30,10 @@ class PreferencesTest extends MediaWikiTestCase { protected function setUp() { parent::setUp(); - $this->setMwGlobals( 'wgEnableEmail', true ); + $this->setMwGlobals( array( + 'wgEnableEmail' => true, + 'wgEmailAuthentication' => true, + ) ); } /** -- 2.20.1