Index: trunk/phase3/tests/phpunit/includes/TitlePermissionTest.php |
— | — | @@ -309,7 +309,7 @@ |
310 | 310 | $this->assertEquals( $check[$action][3], |
311 | 311 | $this->title->userCan( $action, true ) ); |
312 | 312 | $this->assertEquals( $check[$action][3], |
313 | | - $this->title->quickUserCan( $action, false ) ); |
| 313 | + $this->title->quickUserCan( $action ) ); |
314 | 314 | |
315 | 315 | # count( User::getGroupsWithPermissions( $action ) ) < 1 |
316 | 316 | } |
— | — | @@ -461,7 +461,7 @@ |
462 | 462 | $this->user ) ); |
463 | 463 | |
464 | 464 | $this->assertEquals( true, |
465 | | - $this->title->quickUserCan( 'edit', false ) ); |
| 465 | + $this->title->quickUserCan( 'edit' ) ); |
466 | 466 | $this->title->mRestrictions = array( "edit" => array( 'bogus', "sysop", "protect", "" ), |
467 | 467 | "bogus" => array( 'bogus', "sysop", "protect", "" ) ); |
468 | 468 | |
— | — | @@ -501,9 +501,9 @@ |
502 | 502 | $this->user ) ); |
503 | 503 | $this->title->mCascadeRestriction = true; |
504 | 504 | $this->assertEquals( false, |
505 | | - $this->title->quickUserCan( 'bogus', false ) ); |
| 505 | + $this->title->quickUserCan( 'bogus' ) ); |
506 | 506 | $this->assertEquals( false, |
507 | | - $this->title->quickUserCan( 'edit', false ) ); |
| 507 | + $this->title->quickUserCan( 'edit' ) ); |
508 | 508 | $this->assertEquals( array( array( 'badaccess-group0' ), |
509 | 509 | array( 'protectedpagetext', 'bogus' ), |
510 | 510 | array( 'protectedpagetext', 'protect' ), |