dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Special:RC filter: hidehumans
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
specials
/
SpecialRecentchangesTest.php
diff --git
a/tests/phpunit/includes/specials/SpecialRecentchangesTest.php
b/tests/phpunit/includes/specials/SpecialRecentchangesTest.php
index
388e2fd
..
0cd1b34
100644
(file)
--- a/
tests/phpunit/includes/specials/SpecialRecentchangesTest.php
+++ b/
tests/phpunit/includes/specials/SpecialRecentchangesTest.php
@@
-267,4
+267,18
@@
class SpecialRecentchangesTest extends MediaWikiTestCase {
"rc conditions: hidelog=1"
);
}
"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"
+ );
+ }
}
}