mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-23 23:44:53 +00:00
Remove unncessary code from NotifUserTest
setMwGlobals() already restores global state upon teardown, so this isn't necessary. Change-Id: Ia2a2d7a8d3aa3c83443718d5bbf7e7ebd40af472
This commit is contained in:
parent
5114aa2c26
commit
c6d53ad8ed
|
@ -73,10 +73,6 @@ class MWEchoNotifUserTest extends MediaWikiTestCase {
|
|||
}
|
||||
|
||||
public function testGetEmailFormat() {
|
||||
global $wgAllowHTMLEmail;
|
||||
|
||||
$format = $wgAllowHTMLEmail;
|
||||
|
||||
$user = User::newFromId( 2 );
|
||||
$notifUser = MWEchoNotifUser::newFromUser( $user );
|
||||
|
||||
|
@ -84,8 +80,6 @@ class MWEchoNotifUserTest extends MediaWikiTestCase {
|
|||
$this->assertEquals( $notifUser->getEmailFormat(), $user->getOption( 'echo-email-format' ) );
|
||||
$this->setMwGlobals( 'wgAllowHTMLEmail', false );
|
||||
$this->assertEquals( $notifUser->getEmailFormat(), EchoHooks::EMAIL_FORMAT_PLAIN_TEXT );
|
||||
|
||||
$this->setMwGlobals( 'wgAllowHTMLEmail', $format );
|
||||
}
|
||||
|
||||
public function testMarkRead() {
|
||||
|
|
Loading…
Reference in a new issue