Merge "Added release notes for 'ContentHandler::runLegacyHooks' removal"
[mediawiki.git] / tests / phpunit / includes / content / JsonContentHandlerTest.php
blobabfb6733a5850c8b9cc694672396b0f3dcd27e96
1 <?php
3 class JsonContentHandlerTest extends MediaWikiTestCase {
5 /**
6 * @covers JsonContentHandler::makeEmptyContent
7 */
8 public function testMakeEmptyContent() {
9 $handler = new JsonContentHandler();
10 $content = $handler->makeEmptyContent();
11 $this->assertInstanceOf( JsonContent::class, $content );
12 $this->assertTrue( $content->isValid() );