aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/mail/EmailNotificationTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit/includes/mail/EmailNotificationTest.php')
-rw-r--r--tests/phpunit/includes/mail/EmailNotificationTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/phpunit/includes/mail/EmailNotificationTest.php b/tests/phpunit/includes/mail/EmailNotificationTest.php
index 70c9617693d2..50e2f5af7353 100644
--- a/tests/phpunit/includes/mail/EmailNotificationTest.php
+++ b/tests/phpunit/includes/mail/EmailNotificationTest.php
@@ -26,7 +26,7 @@ class EmailNotificationTest extends MediaWikiIntegrationTestCase {
$store = $this->getServiceContainer()->getWatchedItemStore();
// both Alice and Bob watch 'Foobar'
- $title = Title::newFromText( 'Foobar' );
+ $title = Title::makeTitle( NS_MAIN, 'Foobar' );
$alice = $this->getTestSysop()->getUser();
$store->addWatch( $alice, $title );
$bob = $this->getTestUser()->getUser();