Merge "Fix sessionfailure i18n message during authentication"
[lhc/web/wiklou.git] / tests / phpunit / includes / specials / SpecialWatchlistTest.php
index b0490ec..5adbed8 100644 (file)
@@ -41,6 +41,7 @@ class SpecialWatchlistTest extends SpecialPageTestBase {
                                'watchlisthidepatrolled' => 0,
                                'watchlisthidecategorization' => 1,
                                'watchlistreloadautomatically' => 0,
+                               'watchlistunwatchlinks' => 0,
                        ]
                );
        }
@@ -55,7 +56,7 @@ class SpecialWatchlistTest extends SpecialPageTestBase {
        }
 
        public function testNotLoggedIn_throwsException() {
-               $this->setExpectedException( 'UserNotLoggedIn' );
+               $this->setExpectedException( UserNotLoggedIn::class );
                $this->executeSpecialPage();
        }
 
@@ -148,6 +149,7 @@ class SpecialWatchlistTest extends SpecialPageTestBase {
                                        // Second two overriden
                                        'hideanons' => false,
                                        'hideliu' => true,
+                                       'userExpLevel' => 'registered'
                                ] + $wikiDefaults,
                                [
                                        'watchlisthideminor' => 1,
@@ -170,12 +172,14 @@ class SpecialWatchlistTest extends SpecialPageTestBase {
                                        'hidebots' => true,
                                        'hideanons' => false,
                                        'hideliu' => true,
+                                       'userExpLevel' => 'unregistered'
                                ] + $allFalse,
                                [
                                        'watchlisthideminor' => 0,
                                        'watchlisthidebots' => 1,
-                                       'watchlisthideanons' => 1,
-                                       'watchlisthideliu' => 0,
+
+                                       'watchlisthideanons' => 0,
+                                       'watchlisthideliu' => 1,
                                ],
                                [
                                        'hidebots' => 1,