dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CommentStore: Hard-deprecate newKey()
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
session
/
BotPasswordSessionProviderTest.php
diff --git
a/tests/phpunit/includes/session/BotPasswordSessionProviderTest.php
b/tests/phpunit/includes/session/BotPasswordSessionProviderTest.php
index
4767994
..
2298056
100644
(file)
--- a/
tests/phpunit/includes/session/BotPasswordSessionProviderTest.php
+++ b/
tests/phpunit/includes/session/BotPasswordSessionProviderTest.php
@@
-2,6
+2,7
@@
namespace MediaWiki\Session;
namespace MediaWiki\Session;
+use MediaWiki\MediaWikiServices;
use Psr\Log\LogLevel;
use MediaWikiTestCase;
use Wikimedia\TestingAccessWrapper;
use Psr\Log\LogLevel;
use MediaWikiTestCase;
use Wikimedia\TestingAccessWrapper;
@@
-63,8
+64,7
@@
class BotPasswordSessionProviderTest extends MediaWikiTestCase {
}
public function addDBDataOnce() {
}
public function addDBDataOnce() {
- $passwordFactory = new \PasswordFactory();
- $passwordFactory->init( \RequestContext::getMain()->getConfig() );
+ $passwordFactory = MediaWikiServices::getInstance()->getPasswordFactory();
$passwordHash = $passwordFactory->newFromPlaintext( 'foobaz' );
$sysop = static::getTestSysop()->getUser();
$passwordHash = $passwordFactory->newFromPlaintext( 'foobaz' );
$sysop = static::getTestSysop()->getUser();