$this->setMwGlobals( 'wgRevokePermissions',
[ 'user' => [ 'applychangetags' => true ] ] );
- $this->resetServices();
-
$this->doBlock( [ 'tags' => 'custom tag' ] );
}
$this->mergeMwGlobalArrayValue( 'wgGroupPermissions',
[ 'sysop' => $newPermissions ] );
- $this->resetServices();
$res = $this->doBlock( [ 'hidename' => '' ] );
$dbw = wfGetDB( DB_MASTER );
$this->setMwGlobals( [
'wgEnableEmail' => true,
'wgEnableUserEmail' => true,
- 'wgSysopEmailBans' => true,
] );
$res = $this->doBlock( [ 'noemail' => '' ] );
$this->setMwGlobals( [
'wgEnableEmail' => true,
'wgEnableUserEmail' => true,
- 'wgSysopEmailBans' => true,
] );
$this->setExpectedException( ApiUsageException::class,
$this->setMwGlobals( 'wgRevokePermissions',
[ 'sysop' => [ 'blockemail' => true ] ] );
- $this->resetServices();
-
$this->doBlock( [ 'noemail' => '' ] );
}
'partial' => true,
'pagerestrictions' => $title,
'namespacerestrictions' => $namespace,
+ 'allowusertalk' => true,
] );
$block = DatabaseBlock::newFromTarget( $this->mUser->getName() );