diff options
author | daniel <dkinzler@wikimedia.org> | 2019-10-29 12:44:14 +0100 |
---|---|---|
committer | MaxSem <maxsem.wiki@gmail.com> | 2019-10-31 07:01:55 +0000 |
commit | 8d011bf6866011c95b9846b911f2c0e5d6a54fd8 (patch) | |
tree | 3f8fd3829e5994c860a565fd926987ffd0efa57b /tests/phpunit/MediaWikiUnitTestCase.php | |
parent | 71f83d55f36198bf0b74784685c897af59e78726 (diff) | |
download | mediawikicore-8d011bf6866011c95b9846b911f2c0e5d6a54fd8.tar.gz mediawikicore-8d011bf6866011c95b9846b911f2c0e5d6a54fd8.zip |
Make deprecated methods fail in unit tests.
Tests derived from MediaWikiUnitTest need to fail when calling
deprecated methods. To enable this, the $wgDeveloperWarnings setting
has to be looped through.
Bug: T236778
Change-Id: I1e08d8a584293cf544937443b8a699cb86632653
Diffstat (limited to 'tests/phpunit/MediaWikiUnitTestCase.php')
-rw-r--r-- | tests/phpunit/MediaWikiUnitTestCase.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/phpunit/MediaWikiUnitTestCase.php b/tests/phpunit/MediaWikiUnitTestCase.php index 251dd3374ee3..76561fb0f1b3 100644 --- a/tests/phpunit/MediaWikiUnitTestCase.php +++ b/tests/phpunit/MediaWikiUnitTestCase.php @@ -54,7 +54,8 @@ abstract class MediaWikiUnitTestCase extends TestCase { // Need for LoggerFactory. Default is NullSpi. 'wgMWLoggerDefaultSpi', 'wgAutoloadAttemptLowercase', - 'wgLegalTitleChars' + 'wgLegalTitleChars', + 'wgDevelopmentWarnings', ]; } |