From: umherirrender Date: Fri, 7 Dec 2012 11:33:47 +0000 (+0100) Subject: ParserOutput::addLanguageLink needs a string X-Git-Tag: 1.31.0-rc.0~21365^2 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=e3cdd9b742489c6169198470f2be7028951efc85;p=lhc%2Fweb%2Fwiklou.git ParserOutput::addLanguageLink needs a string The Parser passed a string, not a Title object to that method, doing this in the test also Change-Id: I05d195c1dc3cd2366795334f81601007240d9f33 --- diff --git a/tests/phpunit/includes/LinksUpdateTest.php b/tests/phpunit/includes/LinksUpdateTest.php index 74992723d0..332588587a 100644 --- a/tests/phpunit/includes/LinksUpdateTest.php +++ b/tests/phpunit/includes/LinksUpdateTest.php @@ -129,7 +129,7 @@ class LinksUpdateTest extends MediaWikiTestCase { public function testUpdate_langlinks() { list( $t, $po ) = $this->makeTitleAndParserOutput( "Testing", 111 ); - $po->addLanguageLink( Title::newFromText( "en:Foo" ) ); + $po->addLanguageLink( Title::newFromText( "en:Foo" )->getFullText() ); $this->assertLinksUpdate( $t, $po, 'langlinks', 'll_lang, ll_title', 'll_from = 111', array(