mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-15 11:48:23 +00:00
88546ae1ad
* currently the phpunit tests are not triggered by jenkins * some test can't be re-enabled possible reasons: ** the texvc and texvccheck binaries are not available from jenkins ** the binaries can not be generated ** the path to the binaries are not set up correctly Bug: T142120 Change-Id: I0c8fe5ad652c4663eeb029781521acbf56e42bad
24 lines
452 B
PHP
24 lines
452 B
PHP
<?php
|
|
|
|
/**
|
|
* Test the Id feature
|
|
*
|
|
* @covers MathRenderer
|
|
*
|
|
* @group Math
|
|
*
|
|
* @license GPL-2.0-or-later
|
|
*/
|
|
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", [ 'id' => RANDOM_ID ] );
|
|
$this->assertEquals( RANDOM_ID, $renderer->getID() );
|
|
}
|
|
|
|
}
|