$this->assertSame( 'example &', $msg->escaped() );
}
+ /**
+ * @covers CoreTagHooks::html
+ */
public function testRawHtmlInMsg() {
$this->setMwGlobals( 'wgRawHtml', true );
// We have to reset the core hook registration.
];
}
+ /**
+ * @covers ApiErrorFormatter::addMessagesFromStatus
+ * @covers ApiErrorFormatter::addWarningOrError
+ * @covers ApiErrorFormatter::formatMessageInternal
+ */
public function testAddMessagesFromStatus_filter() {
$result = new ApiResult( 8388608 );
$formatter = new ApiErrorFormatter( $result, Language::factory( 'qqx' ), 'plaintext', false );
/**
* @group ContentHandler
+ * @covers MessageContent
*/
class MessageContentTest extends MediaWikiLangTestCase {
];
}
+ /**
+ * @covers TextContent::__construct
+ * @covers TextContentHandler::serializeContent
+ */
public function testSerialize() {
$cnt = $this->newContent( 'testing text' );
$this->assertEquals( 'This is file content', $data['file_text'] );
}
+ /**
+ * @covers ContentHandler::getSecondaryDataUpdates
+ */
public function testGetSecondaryDataUpdates() {
$title = Title::newFromText( 'Somefile.jpg', NS_FILE );
$content = new WikitextContent( '' );
$this->assertEquals( [], $updates );
}
+ /**
+ * @covers ContentHandler::getDeletionUpdates
+ */
public function testGetDeletionUpdates() {
$title = Title::newFromText( 'Somefile.jpg', NS_FILE );
$content = new WikitextContent( '' );
/**
* Verify that all password policy description messages actually exist.
* Messages used on Special:PasswordPolicies
+ * @coversNothing
*/
public function testPasswordPolicyDescriptionsExist() {
global $wgPasswordPolicy;