2016-09-08 06:18:47 +00:00
|
|
|
<?php
|
|
|
|
|
|
2024-05-20 15:00:43 +00:00
|
|
|
use MediaWiki\Content\JsonContent;
|
2024-05-21 13:31:18 +00:00
|
|
|
use MediaWiki\Content\JsonContentHandler;
|
2024-05-20 15:00:43 +00:00
|
|
|
|
2024-07-21 18:16:16 +00:00
|
|
|
/**
|
|
|
|
|
* @covers \MediaWiki\Content\JsonContentHandler
|
|
|
|
|
*/
|
2019-06-30 13:23:53 +00:00
|
|
|
class JsonContentHandlerTest extends \MediaWikiUnitTestCase {
|
2016-09-08 06:18:47 +00:00
|
|
|
|
|
|
|
|
public function testMakeEmptyContent() {
|
|
|
|
|
$handler = new JsonContentHandler();
|
|
|
|
|
$content = $handler->makeEmptyContent();
|
|
|
|
|
$this->assertInstanceOf( JsonContent::class, $content );
|
|
|
|
|
$this->assertTrue( $content->isValid() );
|
|
|
|
|
}
|
|
|
|
|
}
|