wiki.techinc.nl/tests/phpunit/unit/includes/content/JsonContentHandlerTest.php

15 lines
361 B
PHP
Raw Normal View History

<?php
class JsonContentHandlerTest extends \MediaWikiUnitTestCase {
/**
* @covers JsonContentHandler::makeEmptyContent
*/
public function testMakeEmptyContent() {
$handler = new JsonContentHandler();
$content = $handler->makeEmptyContent();
$this->assertInstanceOf( JsonContent::class, $content );
$this->assertTrue( $content->isValid() );
}
}