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