]> scripts.mit.edu Git - autoinstallsdev/mediawiki.git/blob - tests/phpunit/includes/content/JsonContentHandlerTest.php
MediaWiki 1.30.2
[autoinstallsdev/mediawiki.git] / tests / phpunit / includes / content / JsonContentHandlerTest.php
1 <?php
2
3 class JsonContentHandlerTest extends MediaWikiTestCase {
4
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() );
13         }
14 }