MediaWikiTestCase: Centralise insertPage() logic from SearchEngineTest
authorTimo Tijhof <krinklemail@gmail.com>
Thu, 18 Sep 2014 00:02:24 +0000 (17:02 -0700)
committerTimo Tijhof <krinklemail@gmail.com>
Mon, 22 Sep 2014 21:56:32 +0000 (14:56 -0700)
commitbfa6b4cab420dde0d51e3f497f95e56ddaffd966
tree2638f6c16eb1a1d1c3cec374722406c99691b995
parent26d6326427d0ccb0a4f5bc4dedd7b89f12e71694
MediaWikiTestCase: Centralise insertPage() logic from SearchEngineTest

Make it re-usable for other tests and update SearchEngineTest to
use the addDBData (which is called automatically) instead of
manually keeping track of the state.

Change-Id: I75a6951545d9824e71e00f0f96936c53b400dce6
tests/phpunit/MediaWikiTestCase.php
tests/phpunit/includes/search/SearchEngineTest.php