From 896da321dbe5f54c3421e56264cd6f77a0dcec98 Mon Sep 17 00:00:00 2001 From: Platonides Date: Fri, 7 Dec 2012 22:43:02 +0100 Subject: [PATCH] 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 --- tests/phpunit/includes/ArticleTest.php | 1 + 1 file changed, 1 insertion(+) 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" ); -- 2.20.1