From: umherirrender Date: Wed, 8 Apr 2015 10:12:15 +0000 (+0200) Subject: Add test for IRC line for type protect/move_prot X-Git-Tag: 1.31.0-rc.0~11790 X-Git-Url: http://git.heureux-cyclage.org/?a=commitdiff_plain;h=302dcdf19f287a0c8ea3b5055143439a52b9c1ab;p=lhc%2Fweb%2Fwiklou.git Add test for IRC line for type protect/move_prot All other log types already have a test, just move_prot is missing. Change-Id: I97fdb21d3cb58847a883917b06294bc92dac9410 --- diff --git a/tests/phpunit/includes/changes/RecentChangeTest.php b/tests/phpunit/includes/changes/RecentChangeTest.php index b3cb7b529e..0dba1830ad 100644 --- a/tests/phpunit/includes/changes/RecentChangeTest.php +++ b/tests/phpunit/includes/changes/RecentChangeTest.php @@ -46,6 +46,7 @@ class RecentChangeTest extends MediaWikiTestCase { * - protect/protect * - protect/modifyprotect * - protect/unprotect + * - protect/move_prot * - upload/upload * - merge/merge * - import/upload @@ -223,6 +224,15 @@ class RecentChangeTest extends MediaWikiTestCase { $protectParams, $this->user_comment ); + + # protect/move_prot + $this->assertIRCComment( + $this->context->msg( 'movedarticleprotection', 'SomeTitle', 'OldTitle' ) + ->plain() . $sep . $this->user_comment, + 'protect', 'move_prot', + array( 'OldTitle' ), + $this->user_comment + ); } /**