X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fapi%2FApiUserrightsTest.php;h=a1bafed78ca49e207de71af31619b4ec45fc5e1d;hb=a88f1d6b58613cbfa5c24c97887197a41ce66908;hp=8cc021763bcec4a4c232097752daf531e651f55f;hpb=801f046b710a4e2e67174e2d0cd80b3f7517ed20;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/api/ApiUserrightsTest.php b/tests/phpunit/includes/api/ApiUserrightsTest.php index 8cc021763b..a1bafed78c 100644 --- a/tests/phpunit/includes/api/ApiUserrightsTest.php +++ b/tests/phpunit/includes/api/ApiUserrightsTest.php @@ -1,5 +1,7 @@ $wgUser, 'by' => $wgUser->getId(), ] ); + $block = new DatabaseBlock( [ 'address' => $wgUser, 'by' => $wgUser->getId(), ] ); $block->insert(); try { @@ -144,7 +146,7 @@ class ApiUserrightsTest extends ApiTestCase { $this->setPermissions( true, true ); - $block = new Block( [ 'address' => $user, 'by' => $user->getId() ] ); + $block = new DatabaseBlock( [ 'address' => $user, 'by' => $user->getId() ] ); $block->insert(); try { @@ -206,7 +208,7 @@ class ApiUserrightsTest extends ApiTestCase { 'log_title' => strtr( $user->getName(), ' ', '_' ) ], __METHOD__, - [ 'change_tag_def' => [ 'INNER JOIN', 'ctd_id = ct_tag_id' ] ] + [ 'change_tag_def' => [ 'JOIN', 'ctd_id = ct_tag_id' ] ] ) ); }