aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/EditPageTest.php
diff options
context:
space:
mode:
authorNovemLinguae <novemlinguae@gmail.com>2022-07-20 14:45:04 -0700
committerKunal Mehta <legoktm@debian.org>2022-08-13 00:50:05 -0400
commitaad407bb3e08d5caafd9d7a877860d42a68fc76a (patch)
tree4ef317a3af15c7c642995052a364e3e5cba7855e /tests/phpunit/includes/EditPageTest.php
parentce2d1e37e307b3f5399ab1054ff45ddd3a1e162e (diff)
downloadmediawikicore-aad407bb3e08d5caafd9d7a877860d42a68fc76a.tar.gz
mediawikicore-aad407bb3e08d5caafd9d7a877860d42a68fc76a.zip
Add "1 year" to watchlist expiry
When $wgWatchlistExpiry = true and a user adds a page to their watchlist, they are currently presented with a combo box where they can pick a duration of permanent, 1 week, 1 month, 3 months, and 6 months. This patch adds 1 year to the combo box, and raises the maximum age to 1 year. `api.php?action=watch&expiry=1 year` will now also work. Bug: T313255 Change-Id: Ia84d6f99584ae23feea3831499d5baee2dd1a024
Diffstat (limited to 'tests/phpunit/includes/EditPageTest.php')
-rw-r--r--tests/phpunit/includes/EditPageTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/phpunit/includes/EditPageTest.php b/tests/phpunit/includes/EditPageTest.php
index 5d650fb892b6..1c14eff8592f 100644
--- a/tests/phpunit/includes/EditPageTest.php
+++ b/tests/phpunit/includes/EditPageTest.php
@@ -965,7 +965,7 @@ hello
}
public function provideWatchlistExpiry() {
- $standardOptions = [ 'infinite', '1 week', '1 month', '3 months', '6 months' ];
+ $standardOptions = [ 'infinite', '1 week', '1 month', '3 months', '6 months', '1 year' ];
return [
'not watched, request nothing' => [
'existingExpiry' => '',