Call parent::getFieldsForSearchIndex in ContentHandlers
authoraude <aude.wiki@gmail.com>
Mon, 15 Aug 2016 16:37:00 +0000 (12:37 -0400)
committeraude <aude.wiki@gmail.com>
Mon, 15 Aug 2016 23:33:09 +0000 (19:33 -0400)
commitc67536716d62b3095ac58106ad6d723e778a97bb
tree35208ade7b3adcd739bb24ece022e25716b8a733
parenta979689003acd0e2722b9abaca8d86a74f345ead
Call parent::getFieldsForSearchIndex in ContentHandlers

ContentHandler implementations were not including fields
defined by their parent ContentHandler classes.

merge method is added to the SearchIndexFieldDefinition
mock in SearchEngineTest, to allow merges of fields
in the way that SearchIndexFieldDefition implementation does.

Change-Id: Id04a51528f566da2666bad0394a2f61c949c69b4
includes/content/CodeContentHandler.php
includes/content/TextContentHandler.php
includes/content/WikitextContentHandler.php
tests/phpunit/includes/search/SearchEngineTest.php