From 8455ac65d37e80a5f485dfe145fe0bcf40d2e912 Mon Sep 17 00:00:00 2001 From: Paul Copperman Date: Wed, 4 May 2011 11:51:38 +0000 Subject: [PATCH] Follow-up r87326: Add regression test. --- tests/phpunit/includes/TitlePermissionTest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; -- 2.20.1