X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fapi%2FApiErrorFormatterTest.php;h=aa579ab01493ff2c6e1f630deea0b751bd4ad53e;hb=6f9c30c67b31b12d39f2d54b431e141869895eca;hp=d47481cbe4f006981fc99bbb1e9cd5c765aee349;hpb=50075483570e5106b3e8a2b3f469c8fe5254a1cf;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/api/ApiErrorFormatterTest.php b/tests/phpunit/includes/api/ApiErrorFormatterTest.php index d47481cbe4..aa579ab014 100644 --- a/tests/phpunit/includes/api/ApiErrorFormatterTest.php +++ b/tests/phpunit/includes/api/ApiErrorFormatterTest.php @@ -575,11 +575,11 @@ class ApiErrorFormatterTest extends MediaWikiLangTestCase { } public static function provideGetMessageFromException() { - MediaWiki\suppressWarnings(); + Wikimedia\suppressWarnings(); $usageException = new UsageException( 'Something broke!', 'ue-code', 0, [ 'xxx' => 'yyy', 'baz' => 23 ] ); - MediaWiki\restoreWarnings(); + Wikimedia\restoreWarnings(); return [ 'Normal exception' => [