From e3cdd9b742489c6169198470f2be7028951efc85 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Fri, 7 Dec 2012 12:33:47 +0100 Subject: [PATCH] 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 --- tests/phpunit/includes/LinksUpdateTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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( -- 2.20.1