diff options
Diffstat (limited to 'tests/phpunit/includes/api/ApiQueryInfoTest.php')
-rw-r--r-- | tests/phpunit/includes/api/ApiQueryInfoTest.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/phpunit/includes/api/ApiQueryInfoTest.php b/tests/phpunit/includes/api/ApiQueryInfoTest.php index 3aaad486e9ad..5da618e56354 100644 --- a/tests/phpunit/includes/api/ApiQueryInfoTest.php +++ b/tests/phpunit/includes/api/ApiQueryInfoTest.php @@ -1,5 +1,7 @@ <?php +use MediaWiki\Block\DatabaseBlock; + /** * @group API * @group medium @@ -102,7 +104,7 @@ class ApiQueryInfoTest extends ApiTestCase { $badActor = $this->getTestUser()->getUser(); $sysop = $this->getTestSysop()->getUser(); - $block = new \Block( [ + $block = new DatabaseBlock( [ 'address' => $badActor->getName(), 'user' => $badActor->getId(), 'by' => $sysop->getId(), |