aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/api/ApiProtectTest.php
diff options
context:
space:
mode:
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 );
}
/**