namespace MediaWiki\Auth;
+use Config;
use MediaWiki\Session\SessionInfo;
use MediaWiki\Session\UserInfo;
+use Psr\Log\LoggerInterface;
use Psr\Log\LogLevel;
use StatusValue;
+use WebRequest;
use Wikimedia\ScopedCallback;
use Wikimedia\TestingAccessWrapper;
protected $request;
/** @var Config */
protected $config;
- /** @var \\Psr\\Log\\LoggerInterface */
+ /** @var LoggerInterface */
protected $logger;
protected $preauthMocks = [];
$blockOptions = [
'address' => 'UTBlockee',
'user' => $user->getID(),
+ 'by' => $this->getTestSysop()->getUser()->getId(),
'reason' => __METHOD__,
'expiry' => time() + 100500,
'createAccount' => true,
$blockOptions = [
'address' => '127.0.0.0/24',
+ 'by' => $this->getTestSysop()->getUser()->getId(),
'reason' => __METHOD__,
'expiry' => time() + 100500,
'createAccount' => true,