Merge "Prepare for REL1_32 cut, labelling master as 1.33-alpha"
[lhc/web/wiklou.git] / tests / phpunit / includes / api / ApiStashEditTest.php
index d5d33fb..61512d5 100644 (file)
@@ -254,10 +254,8 @@ class ApiStashEditTest extends ApiTestCase {
        }
 
        public function testPingLimiter() {
-               global $wgRateLimits;
-
-               $this->stashMwGlobals( 'wgRateLimits' );
-               $wgRateLimits['stashedit'] = [ '&can-bypass' => false, 'user' => [ 1, 60 ] ];
+               $this->mergeMwGlobalArrayValue( 'wgRateLimits',
+                       [ 'stashedit' => [ '&can-bypass' => false, 'user' => [ 1, 60 ] ] ] );
 
                $this->doStash( [ 'text' => 'A' ] );