aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/api/ApiProtectTest.php
diff options
context:
space:
mode:
authorDerick Alangi <alangiderick@gmail.com>2022-07-06 16:05:30 +0100
committerUmherirrender <umherirrender_de.wp@web.de>2022-07-12 22:24:50 +0000
commita3a2ed268a39f6e6b257b7d682f921a46b6b6634 (patch)
tree790c409660dad73a5a2428f8ddbe40bdbf22420d /tests/phpunit/includes/api/ApiProtectTest.php
parent34bb7c33561f308931eb7883efebc82fdfaa85d4 (diff)
downloadmediawikicore-a3a2ed268a39f6e6b257b7d682f921a46b6b6634.tar.gz
mediawikicore-a3a2ed268a39f6e6b257b7d682f921a46b6b6634.zip
tests: Use `overrideConfig(Value|Values)` where needed
This patch covers: tests/phpunit/includes/actions/ and tests/phpunit/includes/api/. Change-Id: I60d8fb7b8a63b423606db935fa0d24cf859b2512
Diffstat (limited to 'tests/phpunit/includes/api/ApiProtectTest.php')
-rw-r--r--tests/phpunit/includes/api/ApiProtectTest.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/phpunit/includes/api/ApiProtectTest.php b/tests/phpunit/includes/api/ApiProtectTest.php
index de7cf64249a5..e5f826076cf6 100644
--- a/tests/phpunit/includes/api/ApiProtectTest.php
+++ b/tests/phpunit/includes/api/ApiProtectTest.php
@@ -1,5 +1,7 @@
<?php
+use MediaWiki\MainConfigNames;
+
/**
* Tests for protect API.
*
@@ -18,9 +20,7 @@ class ApiProtectTest extends ApiTestCase {
[ 'page_restrictions', 'logging', 'watchlist', 'watchlist_expiry' ]
);
- $this->setMwGlobals( [
- 'wgWatchlistExpiry' => true,
- ] );
+ $this->overrideConfigValue( MainConfigNames::WatchlistExpiry, true );
}
/**