aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/api/query/ApiQueryTestBase.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/ApiQueryTestBase.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/ApiQueryTestBase.php')
-rw-r--r--tests/phpunit/includes/api/query/ApiQueryTestBase.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/phpunit/includes/api/query/ApiQueryTestBase.php b/tests/phpunit/includes/api/query/ApiQueryTestBase.php
index 555c51fa416e..53189fb93e0f 100644
--- a/tests/phpunit/includes/api/query/ApiQueryTestBase.php
+++ b/tests/phpunit/includes/api/query/ApiQueryTestBase.php
@@ -1,4 +1,5 @@
<?php
+
/**
* Copyright © 2013 Yuri Astrakhan "<Firstname><Lastname>@gmail.com"
*
@@ -20,11 +21,15 @@
* @file
*/
+namespace MediaWiki\Tests\Api\Query;
+
+use MediaWiki\Tests\Api\ApiTestCase;
use MediaWiki\User\User;
use PHPUnit\Framework\ExpectationFailedException;
use SebastianBergmann\Comparator\ComparisonFailure;
-/** This class has some common functionality for testing query module
+/**
+ * This class has some common functionality for testing query module
*/
abstract class ApiQueryTestBase extends ApiTestCase {
@@ -152,3 +157,5 @@ STR;
return array_merge( $result );
}
}
+
+class_alias( ApiQueryTestBase::class, 'ApiQueryTestBase' );