diff --git a/includes/controllers/ApiQueryAllInfoboxes.php b/includes/controllers/ApiQueryAllInfoboxes.php index c9ddc39..150b8a5 100644 --- a/includes/controllers/ApiQueryAllInfoboxes.php +++ b/includes/controllers/ApiQueryAllInfoboxes.php @@ -25,7 +25,7 @@ class ApiQueryAllInfoboxes extends ApiQueryBase { $data = $cache->getWithSetCallback( $cachekey, self::CACHE_TTL, function () use ( $db ) { $out = []; - $res = ( new AllinfoboxesQueryPage() )->doQuery(); + $res = ( new AllInfoboxesQueryPage() )->doQuery(); foreach ( $res as $row ) { $out[] = [ 'pageid' => $row->value, diff --git a/tests/phpunit/QueryAllInfoboxesTest.php b/tests/phpunit/QueryAllInfoboxesTest.php index bfcfb95..d9a0187 100644 --- a/tests/phpunit/QueryAllInfoboxesTest.php +++ b/tests/phpunit/QueryAllInfoboxesTest.php @@ -1,6 +1,8 @@