aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/api/query/ApiQueryRecentChangesIntegrationTest.php
diff options
context:
space:
mode:
authorReedy <reedy@wikimedia.org>2024-02-16 19:35:21 +0000
committerReedy <reedy@wikimedia.org>2024-02-18 15:47:04 +0000
commit75640200fbe8086c7fa71dd0c0b3751752c1843c (patch)
tree4da31ad0214062f66da5d167222ac270544b51f9 /tests/phpunit/includes/api/query/ApiQueryRecentChangesIntegrationTest.php
parentd431e802d50596ead1e42af485c14de350ee21d1 (diff)
downloadmediawikicore-75640200fbe8086c7fa71dd0c0b3751752c1843c.tar.gz
mediawikicore-75640200fbe8086c7fa71dd0c0b3751752c1843c.zip
tests: Namespace api tests
Bug: T357823 Change-Id: I0d7cc2c9b166d5e5b913c1305f7cee017fe377af
Diffstat (limited to 'tests/phpunit/includes/api/query/ApiQueryRecentChangesIntegrationTest.php')
-rw-r--r--tests/phpunit/includes/api/query/ApiQueryRecentChangesIntegrationTest.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/phpunit/includes/api/query/ApiQueryRecentChangesIntegrationTest.php b/tests/phpunit/includes/api/query/ApiQueryRecentChangesIntegrationTest.php
index 39084956f295..4269b55930bf 100644
--- a/tests/phpunit/includes/api/query/ApiQueryRecentChangesIntegrationTest.php
+++ b/tests/phpunit/includes/api/query/ApiQueryRecentChangesIntegrationTest.php
@@ -1,11 +1,16 @@
<?php
+namespace MediaWiki\Tests\Api\Query;
+
use MediaWiki\Linker\LinkTarget;
use MediaWiki\MainConfigNames;
use MediaWiki\Permissions\Authority;
+use MediaWiki\Tests\Api\ApiTestCase;
use MediaWiki\Title\TitleValue;
use MediaWiki\User\User;
use MediaWiki\User\UserIdentityValue;
+use RecentChange;
+use WatchedItemQueryService;
/**
* @group API
@@ -412,7 +417,8 @@ class ApiQueryRecentChangesIntegrationTest extends ApiTestCase {
[
'type' => 'new',
'oldlen' => 0,
- 'newlen' => 38,
+ // strlen( __CLASS__ ) - 2 = 64
+ 'newlen' => 64,
],
],
$this->getItemsFromRecentChangesResult( $result )