From: Paul Copperman Date: Wed, 4 May 2011 11:51:38 +0000 (+0000) Subject: Follow-up r87326: Add regression test. X-Git-Tag: 1.31.0-rc.0~30414 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/fiche.php?a=commitdiff_plain;h=8455ac65d37e80a5f485dfe145fe0bcf40d2e912;p=lhc%2Fweb%2Fwiklou.git Follow-up r87326: Add regression test. --- diff --git a/tests/phpunit/includes/TitlePermissionTest.php b/tests/phpunit/includes/TitlePermissionTest.php index eec98f94bb..cb3efaf75b 100644 --- a/tests/phpunit/includes/TitlePermissionTest.php +++ b/tests/phpunit/includes/TitlePermissionTest.php @@ -629,8 +629,9 @@ class TitlePermissionTest extends MediaWikiTestCase { $this->title->getUserPermissionsErrors( 'move-target', $this->user ) ); - $this->assertEquals( false, - $this->title->userCan( 'move-target', $this->user ) ); + $this->assertEquals( false, $this->title->userCan( 'move-target' ) ); + // quickUserCan should ignore user blocks + $this->assertEquals( true, $this->title->quickUserCan( 'move-target' ) ); global $wgLocalTZoffset; $wgLocalTZoffset = -60;