$result = $this->title->getUserPermissionsErrors( 'bogus', $this->user );
$this->assertEquals( $resultNone, $result );
- $this->setUserPerm( '' );
- $result = $this->title->getUserPermissionsErrors( 'patrol', $this->user );
- $this->assertEquals( $resultPatrol, $result );
-
$this->setUserPerm( 'editmyusercss' );
$result = $this->title->getUserPermissionsErrors( 'bogus', $this->user );
$this->assertEquals( $resultMyCss, $result );
$result = $this->title->getUserPermissionsErrors( 'bogus', $this->user );
$this->assertEquals( $resultUserJs, $result );
+ $this->setUserPerm( '' );
+ $result = $this->title->getUserPermissionsErrors( 'patrol', $this->user );
+ $this->assertEquals( $resultPatrol, $result );
+
$this->setUserPerm( [ 'edituserjs', 'edituserjson', 'editusercss' ] );
$result = $this->title->getUserPermissionsErrors( 'bogus', $this->user );
$this->assertEquals( [ [ 'badaccess-group0' ] ], $result );