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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
437 B
PHP
Raw Normal View History

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