Merge "Avoid using Title::__construct"

This commit is contained in:
jenkins-bot 2020-03-08 19:53:20 +00:00 committed by Gerrit Code Review
commit f46d2e6eec

View file

@ -186,7 +186,7 @@ class MathMathMLTest extends MediaWikiTestCase {
public function testintegrationTestWithLinks() { public function testintegrationTestWithLinks() {
$p = MediaWikiServices::getInstance()->getParserFactory()->create(); $p = MediaWikiServices::getInstance()->getParserFactory()->create();
$po = ParserOptions::newFromAnon(); $po = ParserOptions::newFromAnon();
$t = new Title(); $t = Title::newFromText( __METHOD__ );
$res = $p->parse( '[[test|<math forcemathmode="png">a+b</math>]]', $t, $po )->getText(); $res = $p->parse( '[[test|<math forcemathmode="png">a+b</math>]]', $t, $po )->getText();
$this->assertContains( '</a>', $res ); $this->assertContains( '</a>', $res );
$this->assertContains( 'png', $res ); $this->assertContains( 'png', $res );