- $this->assertEquals( [],
- $this->title->getUserPermissionsErrors( 'edit', $this->user ) );
- $this->assertEquals( [],
- $this->title->getUserPermissionsErrors( 'move-target', $this->user ) );
- $this->assertEquals( [],
- $this->title->getUserPermissionsErrors( 'rollback', $this->user ) );
- $this->assertEquals( [],
- $this->title->getUserPermissionsErrors( 'patrol', $this->user ) );
- $this->assertEquals( [],
- $this->title->getUserPermissionsErrors( 'upload', $this->user ) );
- $this->assertEquals( [],
- $this->title->getUserPermissionsErrors( 'purge', $this->user ) );
-
- $this->user->mBlock->setRestrictions( [
- ( new PageRestriction( 0, $this->title->getArticleID() ) )->setTitle( $this->title ),
- ] );
-
- $errors = [ [ 'blockedtext-partial',