diff options
author | Umherirrender <umherirrender_de.wp@web.de> | 2024-06-13 23:21:02 +0200 |
---|---|---|
committer | Umherirrender <umherirrender_de.wp@web.de> | 2024-06-13 23:21:02 +0200 |
commit | f27c2433bb01125be0f0eb4e852ee23c52556911 (patch) | |
tree | 932918c2163f8c338e881f3cc864d0d982e179d5 /tests/phpunit/mocks | |
parent | 86caf6705c94c80a7aefa4633ed3f150408ecd75 (diff) | |
download | mediawikicore-f27c2433bb01125be0f0eb4e852ee23c52556911.tar.gz mediawikicore-f27c2433bb01125be0f0eb4e852ee23c52556911.zip |
tests: Use namespaced classes (2)
Changes to the use statements done automatically via script
Addition of missing use statement done manually
Change-Id: I4ff4d0c10820dc2a3b8419b4115fadf81a76f7a2
Diffstat (limited to 'tests/phpunit/mocks')
6 files changed, 8 insertions, 3 deletions
diff --git a/tests/phpunit/mocks/MockEnvironment.php b/tests/phpunit/mocks/MockEnvironment.php index b7a83afebe58..1b0190f98aff 100644 --- a/tests/phpunit/mocks/MockEnvironment.php +++ b/tests/phpunit/mocks/MockEnvironment.php @@ -3,12 +3,12 @@ namespace MediaWiki\Tests; use Exception; -use HashConfig; +use MediaWiki\Config\HashConfig; +use MediaWiki\Config\MultiConfig; use MediaWiki\Context\RequestContext; use MediaWiki\EntryPointEnvironment; use MediaWiki\Request\FauxRequest; use MediaWiki\Request\FauxResponse; -use MultiConfig; use PHPUnit\Framework\Assert; /** diff --git a/tests/phpunit/mocks/MockMessageLocalizer.php b/tests/phpunit/mocks/MockMessageLocalizer.php index 388dcf0933c9..69aaf502d1d4 100644 --- a/tests/phpunit/mocks/MockMessageLocalizer.php +++ b/tests/phpunit/mocks/MockMessageLocalizer.php @@ -1,5 +1,7 @@ <?php +use MediaWiki\Message\Message; + /** * A simple {@link MessageLocalizer} implementation for use in tests. * By default, it sets the message language to 'qqx', diff --git a/tests/phpunit/mocks/MockTitleTrait.php b/tests/phpunit/mocks/MockTitleTrait.php index 8cb82cd0adde..9898cbfdcc6d 100644 --- a/tests/phpunit/mocks/MockTitleTrait.php +++ b/tests/phpunit/mocks/MockTitleTrait.php @@ -4,6 +4,7 @@ use MediaWiki\Page\PageIdentity; use MediaWiki\Page\PageIdentityValue; use MediaWiki\Page\PageStoreRecord; use MediaWiki\Title\Title; +use MediaWiki\Title\TitleFactory; use PHPUnit\Framework\MockObject\MockObject; /** diff --git a/tests/phpunit/mocks/content/DummyContentHandlerForTesting.php b/tests/phpunit/mocks/content/DummyContentHandlerForTesting.php index ad0aafede08b..edd1255312a2 100644 --- a/tests/phpunit/mocks/content/DummyContentHandlerForTesting.php +++ b/tests/phpunit/mocks/content/DummyContentHandlerForTesting.php @@ -1,6 +1,7 @@ <?php use MediaWiki\Content\Renderer\ContentParseParams; +use MediaWiki\Parser\ParserOutput; class DummyContentHandlerForTesting extends ContentHandler { diff --git a/tests/phpunit/mocks/content/DummyNonTextContentHandler.php b/tests/phpunit/mocks/content/DummyNonTextContentHandler.php index a5482faa48d5..b82fd1d05dc6 100644 --- a/tests/phpunit/mocks/content/DummyNonTextContentHandler.php +++ b/tests/phpunit/mocks/content/DummyNonTextContentHandler.php @@ -1,6 +1,7 @@ <?php use MediaWiki\Content\Renderer\ContentParseParams; +use MediaWiki\Parser\ParserOutput; class DummyNonTextContentHandler extends DummyContentHandlerForTesting { diff --git a/tests/phpunit/mocks/filerepo/TestRepoTrait.php b/tests/phpunit/mocks/filerepo/TestRepoTrait.php index 4cf36caf1e75..5aa5b8dcd382 100644 --- a/tests/phpunit/mocks/filerepo/TestRepoTrait.php +++ b/tests/phpunit/mocks/filerepo/TestRepoTrait.php @@ -8,9 +8,9 @@ use LocalRepo; use LogicException; use MediaWiki\FileBackend\FileBackendGroup; use MediaWiki\MediaWikiServices; +use MediaWiki\Title\Title; use PHPUnit\Framework\Assert; use RepoGroup; -use Title; use Wikimedia\FileBackend\FileBackend; trait TestRepoTrait { |