aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/TemplateCategoriesTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit/includes/TemplateCategoriesTest.php')
-rw-r--r--tests/phpunit/includes/TemplateCategoriesTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/phpunit/includes/TemplateCategoriesTest.php b/tests/phpunit/includes/TemplateCategoriesTest.php
index 4a6a2054015e..27aac5b26658 100644
--- a/tests/phpunit/includes/TemplateCategoriesTest.php
+++ b/tests/phpunit/includes/TemplateCategoriesTest.php
@@ -13,7 +13,7 @@ class TemplateCategoriesTest extends MediaWikiIntegrationTestCase {
$this->overrideUserPermissions( $user, [ 'createpage', 'edit', 'purge', 'delete' ] );
$wikiPageFactory = $this->getServiceContainer()->getWikiPageFactory();
- $title = Title::newFromText( "Categorized from template" );
+ $title = Title::makeTitle( NS_MAIN, "Categorized from template" );
$page = $wikiPageFactory->newFromTitle( $title );
$page->doUserEditContent(
new WikitextContent( '{{Categorising template}}' ),
@@ -28,7 +28,7 @@ class TemplateCategoriesTest extends MediaWikiIntegrationTestCase {
);
// Create template
- $template = $wikiPageFactory->newFromTitle( Title::newFromText( 'Template:Categorising template' ) );
+ $template = $wikiPageFactory->newFromTitle( Title::makeTitle( NS_TEMPLATE, 'Categorising template' ) );
$template->doUserEditContent(
new WikitextContent( '[[Category:Solved bugs]]' ),
$user,