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