Avoid deprecation warnings in test cases.
authordaniel <daniel.kinzler@wikimedia.de>
Tue, 28 Aug 2012 13:58:36 +0000 (15:58 +0200)
committerdaniel <daniel.kinzler@wikimedia.de>
Tue, 28 Aug 2012 14:00:39 +0000 (16:00 +0200)
commit96f7db3f7b28150195817d31d8c6ba1eb3e8d0cf
tree8a5d640b7918e83550afb780b706590684f4e3ab
parent53ffc462212e1ecbc62041d68b8e15d29f5aa659
Avoid deprecation warnings in test cases.

a) when testing deprecated functions, use $this->hideDeprecated() to
suppress warnings.

b) use doEditContent() instead of doEdit()

Change-Id: Ifa9e0ef373ed72ef7d4a3c2dd558483af4a3fd55
14 files changed:
includes/ContentHandler.php
includes/WikiPage.php
tests/parser/parserTest.inc
tests/phpunit/MediaWikiTestCase.php
tests/phpunit/includes/ArticleTablesTest.php
tests/phpunit/includes/ArticleTest.php
tests/phpunit/includes/ContentHandlerTest.php
tests/phpunit/includes/RevisionStorageTest.php
tests/phpunit/includes/RevisionTest.php
tests/phpunit/includes/TemplateCategoriesTest.php
tests/phpunit/includes/WikiPageTest.php
tests/phpunit/includes/search/SearchEngineTest.php
tests/phpunit/maintenance/DumpTestCase.php
tests/phpunit/maintenance/fetchTextTest.php