From ee51b400b0d9ca1eca489923be40ef616e79c0a7 Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Mon, 10 Jun 2024 21:59:11 +0200 Subject: [PATCH] Use namespaced classes Change-Id: Ic2db9150469e64bb0f478cf0c431d9f5824a23c9 --- tests/phpunit/ApiQueryExtractsTest.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/ApiQueryExtractsTest.php b/tests/phpunit/ApiQueryExtractsTest.php index 525819d..e223f42 100644 --- a/tests/phpunit/ApiQueryExtractsTest.php +++ b/tests/phpunit/ApiQueryExtractsTest.php @@ -5,7 +5,9 @@ namespace TextExtracts\Test; use ILanguageConverter; use MediaWiki\Config\ConfigFactory; use MediaWiki\Config\HashConfig; +use MediaWiki\Context\IContextSource; use MediaWiki\Languages\LanguageConverterFactory; +use MediaWiki\Message\Message; use MediaWiki\Title\Title; use MediaWikiCoversValidator; use TextExtracts\ApiQueryExtracts; @@ -33,12 +35,12 @@ class ApiQueryExtractsTest extends \MediaWikiIntegrationTestCase { $cache = new \WANObjectCache( [ 'cache' => new \HashBagOStuff() ] ); - $context = $this->createMock( \IContextSource::class ); + $context = $this->createMock( IContextSource::class ); $context->method( 'getConfig' ) ->willReturn( $config ); $context->method( 'msg' ) ->willReturnCallback( function ( $key, ...$params ) { - $msg = $this->createMock( \Message::class ); + $msg = $this->createMock( Message::class ); $msg->method( 'text' )->willReturn( "($key)" ); return $msg; } );