$this->setMwGlobals( [
'wgEnableEmail' => true,
'wgEnableUserEmail' => true,
- 'wgSysopEmailBans' => true,
] );
$res = $this->doBlock( [ 'noemail' => '' ] );
$this->setMwGlobals( [
'wgEnableEmail' => true,
'wgEnableUserEmail' => true,
- 'wgSysopEmailBans' => true,
] );
$this->setExpectedException( ApiUsageException::class,