From: Mark A. Hershberger Date: Fri, 26 Nov 2010 00:21:36 +0000 (+0000) Subject: follow r77243 -- unit test was coded to hide the bug... doh! fix it up X-Git-Tag: 1.31.0-rc.0~33728 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=b00ec07081908ace57b558a7675ce8f6fddfb5cf;p=lhc%2Fweb%2Fwiklou.git follow r77243 -- unit test was coded to hide the bug... doh! fix it up --- diff --git a/maintenance/tests/phpunit/includes/TitlePermissionTest.php b/maintenance/tests/phpunit/includes/TitlePermissionTest.php index 9619036394..c0a034686d 100644 --- a/maintenance/tests/phpunit/includes/TitlePermissionTest.php +++ b/maintenance/tests/phpunit/includes/TitlePermissionTest.php @@ -610,9 +610,9 @@ class TitlePermissionTest extends PHPUnit_Framework_TestCase { # $short $this->assertEquals( array( array( 'confirmedittext' ) ), self::$title->getUserPermissionsErrors( 'move-target', self::$user ) ); + $wgEmailConfirmToEdit = false; $this->assertEquals( true, self::$title->userCan( 'move-target' ) ); - $wgEmailConfirmToEdit = false; # $wgEmailConfirmToEdit && !$user->isEmailConfirmed() && $action != 'createaccount' $this->assertEquals( array( ), self::$title->getUserPermissionsErrors( 'move-target',