aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/logging/MergeLogFormatterTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit/includes/logging/MergeLogFormatterTest.php')
-rw-r--r--tests/phpunit/includes/logging/MergeLogFormatterTest.php26
1 files changed, 25 insertions, 1 deletions
diff --git a/tests/phpunit/includes/logging/MergeLogFormatterTest.php b/tests/phpunit/includes/logging/MergeLogFormatterTest.php
index 1978f1b52daf..45b3f72d9120 100644
--- a/tests/phpunit/includes/logging/MergeLogFormatterTest.php
+++ b/tests/phpunit/includes/logging/MergeLogFormatterTest.php
@@ -12,7 +12,31 @@ class MergeLogFormatterTest extends LogFormatterTestCase {
*/
public static function provideMergeLogDatabaseRows() {
return [
- // Current format
+ // Current format with a revid
+ [
+ [
+ 'type' => 'merge',
+ 'action' => 'merge',
+ 'comment' => 'Merge comment',
+ 'namespace' => NS_MAIN,
+ 'title' => 'OldPage',
+ 'params' => [
+ '4::dest' => 'NewPage',
+ '5::mergepoint' => '20140804160710',
+ '6::mergerevid' => '1234'
+ ],
+ ],
+ [
+ 'text' => 'User merged OldPage into NewPage (revisions up to 16:07, 4 August 2014)',
+ 'api' => [
+ 'mergerevid' => '1234',
+ 'dest_ns' => 0,
+ 'dest_title' => 'NewPage',
+ 'mergepoint' => '2014-08-04T16:07:10Z',
+ ],
+ ],
+ ],
+ // Same format without a revid
[
[
'type' => 'merge',