Page MenuHomeWickedGov Phorge

MathIdTest.php
No OneTemporary

Size
600 B
Referenced Files
None
Subscribers
None

MathIdTest.php

<?php
use MediaWiki\Extension\Math\MathConfig;
/**
* Test the Id feature
*
* @covers \MediaWiki\Extension\Math\MathRenderer
*
* @group Math
*
* @license GPL-2.0-or-later
*/
class MathIdTest extends MediaWikiIntegrationTestCase {
/**
* Checks if the id specified as attribute is set in the renderer object
*/
public function testBasics() {
$randomId = 'a_random_id';
$renderer = $this->getServiceContainer()
->get( 'Math.RendererFactory' )
->getRenderer( "a+b", [ 'id' => $randomId ], MathConfig::MODE_MATHML );
$this->assertEquals( $randomId, $renderer->getID() );
}
}

File Metadata

Mime Type
text/x-php
Expires
Aug 19 2026, 16:33 (4 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
84/7d/abed1adb7ba576d5a98a7ba45189
Default Alt Text
MathIdTest.php (600 B)

Event Timeline