X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fcontent%2FTextContentHandlerTest.php;h=a85215bea42ebd1d89b9247a6336870150f74358;hp=e8681c7658d5fcaa859cc2cf0c22bfe7db251f3d;hb=dbad540cd37617879aff6f28ce9c016dd8049d4e;hpb=cf8b6e8b21713eebfac96dfbf2f3ccb88c8032e3 diff --git a/tests/phpunit/includes/content/TextContentHandlerTest.php b/tests/phpunit/includes/content/TextContentHandlerTest.php index e8681c7658..a85215bea4 100644 --- a/tests/phpunit/includes/content/TextContentHandlerTest.php +++ b/tests/phpunit/includes/content/TextContentHandlerTest.php @@ -4,6 +4,9 @@ * @group ContentHandler */ class TextContentHandlerTest extends MediaWikiLangTestCase { + /** + * @covers TextContentHandler::supportsDirectEditing + */ public function testSupportsDirectEditing() { $handler = new TextContentHandler(); $this->assertTrue( $handler->supportsDirectEditing(), 'direct editing is supported' ); @@ -16,7 +19,7 @@ class TextContentHandlerTest extends MediaWikiLangTestCase { public function testFieldsForIndex() { $handler = new TextContentHandler(); - $mockEngine = $this->getMock( 'SearchEngine' ); + $mockEngine = $this->createMock( 'SearchEngine' ); $mockEngine->expects( $this->atLeastOnce() ) ->method( 'makeSearchFieldMapping' ) @@ -49,5 +52,4 @@ class TextContentHandlerTest extends MediaWikiLangTestCase { $this->assertEquals( 'test', $mappedFields['language']['testData'] ); $this->assertEquals( 'language', $mappedFields['language']['name'] ); } - }