3 namespace MediaWiki\Edit
;
8 * @covers \MediaWiki\Edit\PreparedEdit
10 class PreparedEditTest
extends \MediaWikiUnitTestCase
{
11 function testCallback() {
12 $output = new ParserOutput();
13 $edit = new PreparedEdit();
14 $edit->parserOutputCallback
= function () {
15 return new ParserOutput();
18 $this->assertEquals( $output, $edit->getOutput() );
19 $this->assertEquals( $output, $edit->output
);