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
Merge "Add missing return types to User::getOption()"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
BlockTest.php
diff --git
a/tests/phpunit/includes/BlockTest.php
b/tests/phpunit/includes/BlockTest.php
index
b765494
..
19780a6
100644
(file)
--- a/
tests/phpunit/includes/BlockTest.php
+++ b/
tests/phpunit/includes/BlockTest.php
@@
-35,6
+35,7
@@
class BlockTest extends MediaWikiLangTestCase {
$blockOptions = [
'address' => $user->getName(),
'user' => $user->getId(),
$blockOptions = [
'address' => $user->getName(),
'user' => $user->getId(),
+ 'by' => $this->getTestSysop()->getUser()->getId(),
'reason' => 'Parce que',
'expiry' => time() + 100500,
];
'reason' => 'Parce que',
'expiry' => time() + 100500,
];
@@
-174,7
+175,7
@@
class BlockTest extends MediaWikiLangTestCase {
);
$this->assertInstanceOf(
);
$this->assertInstanceOf(
-
'Block'
,
+
Block::class
,
$userBlock,
"'$username' block block object should be existent"
);
$userBlock,
"'$username' block block object should be existent"
);
@@
-393,7
+394,7
@@
class BlockTest extends MediaWikiLangTestCase {
$block = new Block(
/* address */ $username,
/* user */ 0,
$block = new Block(
/* address */ $username,
/* user */ 0,
- /* by */
0
,
+ /* by */
$this->getTestSysop()->getUser()->getId()
,
/* reason */ $reason,
/* timestamp */ 0,
/* auto */ false,
/* reason */ $reason,
/* timestamp */ 0,
/* auto */ false,