diff options
author | Umherirrender <umherirrender_de.wp@web.de> | 2022-07-06 00:21:30 +0200 |
---|---|---|
committer | Umherirrender <umherirrender_de.wp@web.de> | 2022-07-06 00:44:00 +0200 |
commit | 047c184bfef78cfc2217fe646dbfd24b866b8d00 (patch) | |
tree | a93e1e5e943184a2b177302f23d7a95a8fc9a915 /tests/phpunit/includes/mail/EmailNotificationTest.php | |
parent | fa69b9ad8788a86c6c4da5ad8e12865ab013b54a (diff) | |
download | mediawikicore-047c184bfef78cfc2217fe646dbfd24b866b8d00.tar.gz mediawikicore-047c184bfef78cfc2217fe646dbfd24b866b8d00.zip |
tests: Use Title::makeTitle instead of Title::newFromText
Avoid parsing known titles in tests to improve performance
Change-Id: Ibfccfe696f0b8bfda0b99abae324e60bbecef7d8
Diffstat (limited to 'tests/phpunit/includes/mail/EmailNotificationTest.php')
-rw-r--r-- | tests/phpunit/includes/mail/EmailNotificationTest.php | 2 |
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(); |