X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=tests%2Fphpunit%2Fincludes%2FBlockTest.php;h=19780a684a79c956f108390d2eb5258adf7555e9;hb=2e17fed420136520e69d63db469d124dcf720489;hp=b765494966eabede7f4d27c8aca32d9bbf587822;hpb=5f0080715ab1f9e176420c737b4a0511e3cb280b;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/BlockTest.php b/tests/phpunit/includes/BlockTest.php index b765494966..19780a684a 100644 --- 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(), + 'by' => $this->getTestSysop()->getUser()->getId(), 'reason' => 'Parce que', 'expiry' => time() + 100500, ]; @@ -174,7 +175,7 @@ class BlockTest extends MediaWikiLangTestCase { ); $this->assertInstanceOf( - 'Block', + Block::class, $userBlock, "'$username' block block object should be existent" ); @@ -393,7 +394,7 @@ class BlockTest extends MediaWikiLangTestCase { $block = new Block( /* address */ $username, /* user */ 0, - /* by */ 0, + /* by */ $this->getTestSysop()->getUser()->getId(), /* reason */ $reason, /* timestamp */ 0, /* auto */ false,