From: Alexandre Emsenhuber Date: Sat, 11 May 2013 20:14:18 +0000 (+0200) Subject: Fix unit tests when $wgEmailAuthentication is set to false X-Git-Tag: 1.31.0-rc.0~19702^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/ajouter.php?a=commitdiff_plain;h=084b429175746cb3b2dbd29efa50a1fd8354c535;p=lhc%2Fweb%2Fwiklou.git 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 --- 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, + ) ); } /**