Special:RC filter: hidehumans
[lhc/web/wiklou.git] / tests / phpunit / includes / specials / SpecialRecentchangesTest.php
index 388e2fd..0cd1b34 100644 (file)
@@ -267,4 +267,18 @@ class SpecialRecentchangesTest extends MediaWikiTestCase {
                        "rc conditions: hidelog=1"
                );
        }
+
+       public function testRcHidehumans() {
+               $this->assertConditions(
+                       [ # expected
+                               'rc_bot' => 1,
+                               "rc_type != '6'",
+                       ],
+                       [
+                               'hidebots' => 0,
+                               'hidehumans' => 1,
+                       ],
+                       "rc conditions: hidebots=0 hidehumans=1"
+               );
+       }
 }