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
Revert "Factors out permissions check from User into PermissionManager service"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
user
/
LocalIdLookupTest.php
diff --git
a/tests/phpunit/includes/user/LocalIdLookupTest.php
b/tests/phpunit/includes/user/LocalIdLookupTest.php
index
58441f0
..
e38d77b
100644
(file)
--- a/
tests/phpunit/includes/user/LocalIdLookupTest.php
+++ b/
tests/phpunit/includes/user/LocalIdLookupTest.php
@@
-1,5
+1,7
@@
<?php
<?php
+use MediaWiki\Block\DatabaseBlock;
+
/**
* @covers LocalIdLookup
* @group Database
/**
* @covers LocalIdLookup
* @group Database
@@
-20,7
+22,7
@@
class LocalIdLookupTest extends MediaWikiTestCase {
$sysop = static::getTestSysop()->getUser();
$sysop = static::getTestSysop()->getUser();
- $block = new Block( [
+ $block = new
Database
Block( [
'address' => $this->localUsers[2]->getName(),
'by' => $sysop->getId(),
'reason' => __METHOD__,
'address' => $this->localUsers[2]->getName(),
'by' => $sysop->getId(),
'reason' => __METHOD__,
@@
-29,7
+31,7
@@
class LocalIdLookupTest extends MediaWikiTestCase {
] );
$block->insert();
] );
$block->insert();
- $block = new Block( [
+ $block = new
Database
Block( [
'address' => $this->localUsers[3]->getName(),
'by' => $sysop->getId(),
'reason' => __METHOD__,
'address' => $this->localUsers[3]->getName(),
'by' => $sysop->getId(),
'reason' => __METHOD__,