From 302dcdf19f287a0c8ea3b5055143439a52b9c1ab Mon Sep 17 00:00:00 2001 From: umherirrender Date: Wed, 8 Apr 2015 12:12:15 +0200 Subject: [PATCH] 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 --- tests/phpunit/includes/changes/RecentChangeTest.php | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 + ); } /** -- 2.20.1