mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-23 23:25:02 +00:00
f2dff6574b
Id attribute was read wrong place Change-Id: I6f2671a322f637a1d8e0c88833ce4456d188829b
17 lines
393 B
PHP
17 lines
393 B
PHP
<?php
|
|
/**
|
|
* Test the Id feature
|
|
* @group Math
|
|
*/
|
|
class MathIdTest extends MediaWikiTestCase {
|
|
|
|
/**
|
|
* Checks if the id specified as attribute is set in the renderer object
|
|
*/
|
|
public function testBasics() {
|
|
define( 'RANDOM_ID', 'a_random_id' );
|
|
$renderer = MathRenderer::getRenderer( "a+b", array( 'id' => RANDOM_ID ) );
|
|
$this->assertEquals( RANDOM_ID, $renderer->getId() );
|
|
}
|
|
|
|
} |