mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-23 23:25:02 +00:00
Merge "Avoid using Title::__construct"
This commit is contained in:
commit
f46d2e6eec
|
@ -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|<math forcemathmode="png">a+b</math>]]', $t, $po )->getText();
|
||||
$this->assertContains( '</a>', $res );
|
||||
$this->assertContains( 'png', $res );
|
||||
|
|
Loading…
Reference in a new issue