}
}
- /*
+ /**
+ * @covers ContentHandler::getAutosummary
+ *
* Test if we become a "Created blank page" summary from getAutoSummary if no Content added to
* page.
*/
}
*/
+ /**
+ * @covers ContentHandler::supportsCategories
+ */
public function testSupportsCategories() {
$handler = new DummyContentHandlerForTesting( CONTENT_MODEL_WIKITEXT );
$this->assertTrue( $handler->supportsCategories(), 'content model supports categories' );
}
+ /**
+ * @covers ContentHandler::supportsDirectEditing
+ */
public function testSupportsDirectEditing() {
$handler = new DummyContentHandlerForTesting( CONTENT_MODEL_JSON );
$this->assertFalse( $handler->supportsDirectEditing(), 'direct editing is not supported' );
}
/**
+ * @covers ContentHandler::getForModelID
* @dataProvider provideGetModelForID
*/
public function testGetModelForID( $modelId, $handlerClass ) {
$this->assertInstanceOf( $handlerClass, $handler );
}
+ /**
+ * @covers ContentHandler::getFieldsForSearchIndex
+ */
public function testGetFieldsForSearchIndex() {
$searchEngine = $this->newSearchEngine();
}
/**
+ * @covers CssContent::getRedirectTarget
* @dataProvider provideGetRedirectTarget
*/
public function testGetRedirectTarget( $title, $text ) {
/**
* @group ContentHandler
+ *
+ * @covers FileContentHandler
*/
class FileContentHandlerTest extends MediaWikiLangTestCase {
/**
}
/**
+ * @covers JavaScriptContent::getRedirectTarget
* @dataProvider provideGetRedirectTarget
*/
public function testGetRedirectTarget( $title, $text ) {
* @group ContentHandler
*/
class TextContentHandlerTest extends MediaWikiLangTestCase {
+ /**
+ * @covers TextContentHandler::supportsDirectEditing
+ */
public function testSupportsDirectEditing() {
$handler = new TextContentHandler();
$this->assertTrue( $handler->supportsDirectEditing(), 'direct editing is supported' );
$this->assertEquals( $supported, $this->handler->isSupportedFormat( $format ) );
}
+ /**
+ * @covers WikitextContentHandler::supportsDirectEditing
+ */
public function testSupportsDirectEditing() {
$handler = new WikiTextContentHandler();
$this->assertTrue( $handler->supportsDirectEditing(), 'direct editing is supported' );
}
*/
+ /**
+ * @covers WikitextContentHandler::getDataForSearchIndex
+ */
public function testDataIndexFieldsFile() {
$mockEngine = $this->createMock( 'SearchEngine' );
$title = Title::newFromText( 'Somefile.jpg', NS_FILE );
<?php
+/**
+ * @covers WikiTextStructure
+ */
class WikitextStructureTest extends MediaWikiLangTestCase {
private function getMockTitle() {