ParserOutput::addLanguageLink needs a string
authorumherirrender <umherirrender_de.wp@web.de>
Fri, 7 Dec 2012 11:33:47 +0000 (12:33 +0100)
committerumherirrender <umherirrender_de.wp@web.de>
Fri, 7 Dec 2012 11:33:47 +0000 (12:33 +0100)
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

index 7499272..3325885 100644 (file)
@@ -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(