mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-23 23:25:02 +00:00
Use namespaced TitleFactory
Bug: T321681 Change-Id: I6392fe93fc1ff244c1035a6da7f83b8f849c0a5a
This commit is contained in:
parent
e3570e3f99
commit
530b9c695a
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue