Skip to content

Commit da0e0bf

Browse files
committed
Use namespaced Title class for MW master compatibility
1 parent 6432740 commit da0e0bf

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

tests/Integration/EmbedFunctionIntegrationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function testUsageIsTracked(): void {
5454

5555
$parser->parse(
5656
'{{#embed:https://example.com/KITTENS.md}}',
57-
\Title::newFromText( 'EmbedFunctionIntegrationTest' ),
57+
\MediaWiki\Title\Title::newFromText( 'EmbedFunctionIntegrationTest' ),
5858
new \ParserOptions( \User::newSystemUser( 'TestUser' ) )
5959
)->getText();
6060

tests/Integration/EmbedFunctionSystemTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
use CommentStoreComment;
88
use FileFetcher\StubFileFetcher;
9-
use Title;
9+
use MediaWiki\Title\Title;
1010
use User;
1111
use WikiPage;
1212

tests/TestEnvironment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace ProfessionalWiki\ExternalContent\Tests;
66

77
use MediaWiki\MediaWikiServices;
8-
use Title;
8+
use MediaWiki\Title\Title;
99

1010
class TestEnvironment {
1111

0 commit comments

Comments
 (0)