Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4105278
PreparedEditTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
598 B
Referenced Files
None
Subscribers
None
PreparedEditTest.php
View Options
<?php
namespace
MediaWiki\Tests\Edit
;
use
MediaWiki\Edit\PreparedEdit
;
use
MediaWiki\Parser\ParserOutput
;
/**
* @covers \MediaWiki\Edit\PreparedEdit
*/
class
PreparedEditTest
extends
\MediaWikiUnitTestCase
{
public
function
testCallback
()
{
$output
=
new
ParserOutput
();
$output
->
clearParseStartTime
();
$edit
=
new
PreparedEdit
();
$edit
->
parserOutputCallback
=
static
function
()
{
$output
=
new
ParserOutput
();
$output
->
clearParseStartTime
();
return
$output
;
};
$this
->
assertEquals
(
$output
,
$edit
->
getOutput
()
);
$this
->
assertEquals
(
$output
,
$edit
->
output
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Aug 18, 18:55 (3 w, 4 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
97/5f/a14536dcfd5c1c3352c5d049a3e5
Default Alt Text
PreparedEditTest.php (598 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment