diff options
author | Derick Alangi <alangiderick@gmail.com> | 2022-08-19 21:03:47 +0100 |
---|---|---|
committer | D3r1ck01 <xsavitar.wiki@aol.com> | 2022-08-22 20:17:49 +0000 |
commit | cb03a63230bcad0888e7bb9a62bd4c0f573d5a6c (patch) | |
tree | b18987f40fb3a3db06dfe3f468ac681546b7eba5 /tests/phpunit/includes/exception/ErrorPageErrorTest.php | |
parent | adbade1d677da4158389b5c90795625b86cb59f2 (diff) | |
download | mediawikicore-cb03a63230bcad0888e7bb9a62bd4c0f573d5a6c.tar.gz mediawikicore-cb03a63230bcad0888e7bb9a62bd4c0f573d5a6c.zip |
tests: Migrate away from `setMwGlobals()`
Make use of `overrideConfigValue(s)()` where needed and also
make use of MainConfigNames constants.
NOTE: group multiple calls to setMwGlobals() to one and pass
an array of values instead.
Change-Id: I3bbfd037bb3765c00c426682cce3ef5cccc1a284
Diffstat (limited to 'tests/phpunit/includes/exception/ErrorPageErrorTest.php')
-rw-r--r-- | tests/phpunit/includes/exception/ErrorPageErrorTest.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/phpunit/includes/exception/ErrorPageErrorTest.php b/tests/phpunit/includes/exception/ErrorPageErrorTest.php index f0d8b807d0fc..0a3b1205e44f 100644 --- a/tests/phpunit/includes/exception/ErrorPageErrorTest.php +++ b/tests/phpunit/includes/exception/ErrorPageErrorTest.php @@ -27,8 +27,10 @@ class ErrorPageErrorTest extends MediaWikiIntegrationTestCase { ->with( $title, $mockMessage, $params ); $mock->expects( $this->once() ) ->method( 'output' ); - $this->setMwGlobals( 'wgOut', $mock ); - $this->setMwGlobals( 'wgCommandLineMode', false ); + $this->setMwGlobals( [ + 'wgOut' => $mock, + 'wgCommandLineMode' => false, + ] ); $e = new ErrorPageError( $title, $mockMessage, $params ); $e->report(); |