wiki.techinc.nl/tests/phpunit/unit/includes/Storage/PreparedEditTest.php
Umherirrender 5bd311b1a2 Add public as visibility in tests folder
Add public, protected or private to function missing a visibility
Enable the tests folder for the phpcs sniff

Change-Id: Ibefce76ea9984c47e08c94889ea2eafca7565e2c
2019-10-10 21:55:37 +02:00

21 lines
443 B
PHP

<?php
namespace MediaWiki\Edit;
use ParserOutput;
/**
* @covers \MediaWiki\Edit\PreparedEdit
*/
class PreparedEditTest extends \MediaWikiUnitTestCase {
public function testCallback() {
$output = new ParserOutput();
$edit = new PreparedEdit();
$edit->parserOutputCallback = function () {
return new ParserOutput();
};
$this->assertEquals( $output, $edit->getOutput() );
$this->assertEquals( $output, $edit->output );
}
}