MediaWiki REL1_30
JsonContentHandlerTest.php
Go to the documentation of this file.
1<?php
2
4
8 public function testMakeEmptyContent() {
10 $content = $handler->makeEmptyContent();
11 $this->assertInstanceOf( JsonContent::class, $content );
12 $this->assertTrue( $content->isValid() );
13 }
14}
testMakeEmptyContent()
JsonContentHandler::makeEmptyContent.
Content handler for JSON.
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that probably a stub it is not rendered in wiki pages or galleries in category pages allow injecting custom HTML after the section Any uses of the hook need to handle escaping see BaseTemplate::getToolbox and BaseTemplate::makeListItem for details on the format of individual items inside of this array or by returning and letting standard HTTP rendering take place modifiable or by returning false and taking over the output modifiable modifiable after all normalizations have been except for the $wgMaxImageArea check set to true or false to override the $wgMaxImageArea check result gives extension the possibility to transform it themselves $handler
Definition hooks.txt:901