From: Platonides Date: Fri, 7 Dec 2012 21:43:02 +0000 (+0100) Subject: hideDeprecated( 'CategoryPage::getAutosummary' ) X-Git-Tag: 1.31.0-rc.0~21387^2 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=896da321dbe5f54c3421e56264cd6f77a0dcec98;p=lhc%2Fweb%2Fwiklou.git hideDeprecated( 'CategoryPage::getAutosummary' ) 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 --- diff --git a/tests/phpunit/includes/ArticleTest.php b/tests/phpunit/includes/ArticleTest.php index 20952b1ec4..82b947bb7c 100644 --- a/tests/phpunit/includes/ArticleTest.php +++ b/tests/phpunit/includes/ArticleTest.php @@ -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" );