mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-24 07:34:22 +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() {
|
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 );
|
||||||
|
|
Loading…
Reference in a new issue