From 10aee4e9a5c724e6b1e7b9eed337d4149a48cc4e Mon Sep 17 00:00:00 2001 From: Daimona Eaytoy Date: Sat, 7 Mar 2020 13:07:53 +0000 Subject: [PATCH] Avoid using Title::__construct Change-Id: I4241487d77a9528ca06251ab25e2d2b08401d893 --- tests/phpunit/MathMathMLTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/MathMathMLTest.php b/tests/phpunit/MathMathMLTest.php index e9da2692e..5a4c2e845 100644 --- a/tests/phpunit/MathMathMLTest.php +++ b/tests/phpunit/MathMathMLTest.php @@ -186,7 +186,7 @@ class MathMathMLTest extends MediaWikiTestCase { public function testintegrationTestWithLinks() { $p = MediaWikiServices::getInstance()->getParserFactory()->create(); $po = ParserOptions::newFromAnon(); - $t = new Title(); + $t = Title::newFromText( __METHOD__ ); $res = $p->parse( '[[test|a+b]]', $t, $po )->getText(); $this->assertContains( '', $res ); $this->assertContains( 'png', $res );