Removed useless second parameter to Title::quickUserCan()
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 7 Nov 2011 13:54:03 +0000 (13:54 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 7 Nov 2011 13:54:03 +0000 (13:54 +0000)
tests/phpunit/includes/TitlePermissionTest.php

index a91c161..9594f0c 100644 (file)
@@ -309,7 +309,7 @@ class TitlePermissionTest extends MediaWikiLangTestCase {
                        $this->assertEquals( $check[$action][3],
                                $this->title->userCan( $action, true ) );
                        $this->assertEquals( $check[$action][3],
-                               $this->title->quickUserCan( $action, false ) );
+                               $this->title->quickUserCan( $action ) );
 
                        # count( User::getGroupsWithPermissions( $action ) ) < 1
                }
@@ -461,7 +461,7 @@ class TitlePermissionTest extends MediaWikiLangTestCase {
                                                                                                                                         $this->user ) );
 
                $this->assertEquals( true,
-                                                        $this->title->quickUserCan( 'edit', false ) );
+                                                        $this->title->quickUserCan( 'edit' ) );
                $this->title->mRestrictions = array( "edit" => array( 'bogus', "sysop", "protect", "" ),
                                                                                   "bogus" => array( 'bogus', "sysop", "protect", "" ) );
 
@@ -501,9 +501,9 @@ class TitlePermissionTest extends MediaWikiLangTestCase {
                                                                                                                                         $this->user ) );
                $this->title->mCascadeRestriction = true;
                $this->assertEquals( false,
-                                                        $this->title->quickUserCan( 'bogus', false ) );
+                                                        $this->title->quickUserCan( 'bogus' ) );
                $this->assertEquals( false,
-                                                        $this->title->quickUserCan( 'edit', false ) );
+                                                        $this->title->quickUserCan( 'edit' ) );
                $this->assertEquals( array( array( 'badaccess-group0' ),
                                                                        array( 'protectedpagetext', 'bogus' ),
                                                                        array( 'protectedpagetext', 'protect' ),