Merge "Type hint against LinkTarget in WatchedItemStore"
[lhc/web/wiklou.git] / tests / phpunit / unit / includes / Storage / PreparedEditTest.php
1 <?php
2
3 namespace MediaWiki\Edit;
4
5 use ParserOutput;
6
7 /**
8 * @covers \MediaWiki\Edit\PreparedEdit
9 */
10 class PreparedEditTest extends \MediaWikiUnitTestCase {
11 function testCallback() {
12 $output = new ParserOutput();
13 $edit = new PreparedEdit();
14 $edit->parserOutputCallback = function () {
15 return new ParserOutput();
16 };
17
18 $this->assertEquals( $output, $edit->getOutput() );
19 $this->assertEquals( $output, $edit->output );
20 }
21 }