Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4142852
MathIdTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
600 B
Referenced Files
None
Subscribers
None
MathIdTest.php
View Options
<?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
Details
Attached
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)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment