Ensure OutputPageTest works when Translate extension is loaded
authorC. Scott Ananian <cscott@cscott.net>
Thu, 27 Sep 2018 21:36:19 +0000 (17:36 -0400)
committerC. Scott Ananian <cananian@wikimedia.org>
Fri, 28 Sep 2018 01:05:46 +0000 (01:05 +0000)
commit91c81397ccfbe8e52cc39f92a5e5d7379d87021f
treecbe9c796ddcb63b78e1219c82261de53b2650e87
parentc8ca57f903da259f0be435f8a5e9234deefee26b
Ensure OutputPageTest works when Translate extension is loaded

The translate extension registers the LanguageLinks hook which is run by
OutputPage::addParserOutputMetadata with a Title as an argument.  If
our mock doesn't provide a valid Title, then
PageTranslationHooks::addLanguageLinks() in Translate will throw a
TypeError in OutputPageTest::testParserOutputCategoryLinks().

Change-Id: I495c51731670f841e5ab752a3a1e014c86ef643d
tests/phpunit/includes/OutputPageTest.php