hideDeprecated( 'CategoryPage::getAutosummary' )
authorPlatonides <platonides@gmail.com>
Fri, 7 Dec 2012 21:43:02 +0000 (22:43 +0100)
committerPlatonides <platonides@gmail.com>
Fri, 7 Dec 2012 21:43:02 +0000 (22:43 +0100)
check-vars correctly detects the call to CategoryPage::getAutosummary as
deprecated by coming from Article::getAutosummary but needs an explicit
hideDeprecated() to not complain about it.

Change-Id: I8a51a3041cc4cab592c5e37862efb69b538821a0

tests/phpunit/includes/ArticleTest.php

index 20952b1..82b947b 100644 (file)
@@ -62,6 +62,7 @@ class ArticleTest extends MediaWikiTestCase {
        function testStaticFunctions() {
                $this->hideDeprecated( 'Article::getAutosummary' );
                $this->hideDeprecated( 'WikiPage::getAutosummary' );
+               $this->hideDeprecated( 'CategoryPage::getAutosummary' ); // Inherited from Article
 
                $this->assertEquals( WikiPage::selectFields(), Article::selectFields(),
                        "Article static functions" );