aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/EditPageConstraintsTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit/includes/EditPageConstraintsTest.php')
-rw-r--r--tests/phpunit/includes/EditPageConstraintsTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/phpunit/includes/EditPageConstraintsTest.php b/tests/phpunit/includes/EditPageConstraintsTest.php
index 40d4484bc1ea..96604413cf3b 100644
--- a/tests/phpunit/includes/EditPageConstraintsTest.php
+++ b/tests/phpunit/includes/EditPageConstraintsTest.php
@@ -263,7 +263,7 @@ class EditPageConstraintsTest extends MediaWikiLangTestCase {
'format' => CONTENT_FORMAT_TEXT,
];
- $title = Title::newFromText( 'Example', NS_MAIN );
+ $title = Title::makeTitle( NS_MAIN, 'Example' );
$this->assertSame(
CONTENT_MODEL_WIKITEXT,
$title->getContentModel(),
@@ -449,7 +449,7 @@ class EditPageConstraintsTest extends MediaWikiLangTestCase {
'wpSummary' => 'Summary'
];
- $title = Title::newFromText( 'Example.jpg', NS_FILE );
+ $title = Title::makeTitle( NS_FILE, 'Example.jpg' );
$this->assertEdit(
$title,
null,