wiki.techinc.nl/tests/phpunit/unit/includes/Storage/PreparedEditTest.php
Reedy e94e265a93 tests: Add Tests to PHP namespacing
Change-Id: I849268172751d50292e93aa75abe8094873f56bc
2024-02-16 19:10:11 +00:00

22 lines
506 B
PHP

<?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();
$edit = new PreparedEdit();
$edit->parserOutputCallback = static function () {
return new ParserOutput();
};
$this->assertEquals( $output, $edit->getOutput() );
$this->assertEquals( $output, $edit->output );
}
}