X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fcommon%2FTestSetup.php;h=e24c4c544253c0520ac2a790a05b36bb31d66d33;hb=b7131c89e9ad0d69beb5373df794e3d63e3c5cb6;hp=c176a67f7f1f0109049f61edef3b5058aca0b568;hpb=b610a3b617f7616b2f1db12498cbad5aeae12576;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/common/TestSetup.php b/tests/common/TestSetup.php index c176a67f7f..e24c4c5442 100644 --- a/tests/common/TestSetup.php +++ b/tests/common/TestSetup.php @@ -17,7 +17,7 @@ class TestSetup { global $wgDevelopmentWarnings; global $wgSessionProviders, $wgSessionPbkdf2Iterations; global $wgJobTypeConf; - global $wgAuthManagerConfig, $wgAuth; + global $wgAuthManagerConfig; // wfWarn should cause tests to fail $wgDevelopmentWarnings = true; @@ -87,7 +87,6 @@ class TestSetup { ], 'secondaryauth' => [], ]; - $wgAuth = new MediaWiki\Auth\AuthManagerAuthPlugin(); // T46192 Do not attempt to send a real e-mail Hooks::clear( 'AlternateUserMailer' ); @@ -104,10 +103,6 @@ class TestSetup { // may break testing against floating point values // treated with PHP's serialize() ini_set( 'serialize_precision', 17 ); - - // TODO: we should call MediaWikiTestCase::prepareServices( new GlobalVarConfig() ) here. - // But PHPUnit may not be loaded yet, so we have to wait until just - // before PHPUnit_TextUI_Command::main() is executed. } }