Follow-up r87326: Add regression test.
authorPaul Copperman <pcopp@users.mediawiki.org>
Wed, 4 May 2011 11:51:38 +0000 (11:51 +0000)
committerPaul Copperman <pcopp@users.mediawiki.org>
Wed, 4 May 2011 11:51:38 +0000 (11:51 +0000)
tests/phpunit/includes/TitlePermissionTest.php

index eec98f9..cb3efaf 100644 (file)
@@ -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;