* @group ContentHandler
*/
class TextContentHandlerTest extends MediaWikiLangTestCase {
+ /**
+ * @covers TextContentHandler::supportsDirectEditing
+ */
public function testSupportsDirectEditing() {
$handler = new TextContentHandler();
$this->assertTrue( $handler->supportsDirectEditing(), 'direct editing is supported' );
public function testFieldsForIndex() {
$handler = new TextContentHandler();
- $mockEngine = $this->getMock( 'SearchEngine' );
+ $mockEngine = $this->createMock( 'SearchEngine' );
$mockEngine->expects( $this->atLeastOnce() )
->method( 'makeSearchFieldMapping' )