From 530b9c695ab2b68d0a9fcace876aab79caf0e928 Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Sat, 19 Aug 2023 14:41:58 +0200 Subject: [PATCH] Use namespaced TitleFactory Bug: T321681 Change-Id: I6392fe93fc1ff244c1035a6da7f83b8f849c0a5a --- tests/phpunit/unit/PopupTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/unit/PopupTest.php b/tests/phpunit/unit/PopupTest.php index ba834274e..9bef15e83 100644 --- a/tests/phpunit/unit/PopupTest.php +++ b/tests/phpunit/unit/PopupTest.php @@ -10,6 +10,7 @@ use MediaWiki\Rest\HttpException; use MediaWiki\Rest\RequestData; use MediaWiki\Tests\Rest\Handler\HandlerTestTrait; use MediaWiki\Title\Title; +use MediaWiki\Title\TitleFactory; use Wikibase\DataModel\Entity\Item; use Wikibase\Lib\Store\EntityRevision; use Wikimedia\ParamValidator\ParamValidator; @@ -125,7 +126,7 @@ class PopupTest extends MathWikibaseConnectorTestFactory { $titleMock = $this->createMock( Title::class ); $titleMock->method( 'getLocalURL' )->willReturn( 'special/Q1' ); $titleMock->method( 'getFullURL' )->willReturn( 'special/Q1' ); - $titleFactoryMock = $this->createMock( \TitleFactory::class ); + $titleFactoryMock = $this->createMock( TitleFactory::class ); $titleFactoryMock->expects( $this->once() ) ->method( 'newFromText' ) ->willReturn( $titleMock );