X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Flogging%2FMergeLogFormatterTest.php;h=1978f1b52daf79567835441ec97b8f5d790ba17f;hp=2ff0ddf5e9338fcb44d3876e6a996331526b07a8;hb=c368a4313b4183af56b0d566e1f7529ba997a110;hpb=23f5395a8c772d8076ef7033aac43945e963e40c diff --git a/tests/phpunit/includes/logging/MergeLogFormatterTest.php b/tests/phpunit/includes/logging/MergeLogFormatterTest.php index 2ff0ddf5e9..1978f1b52d 100644 --- a/tests/phpunit/includes/logging/MergeLogFormatterTest.php +++ b/tests/phpunit/includes/logging/MergeLogFormatterTest.php @@ -1,5 +1,8 @@ 'merge', 'action' => 'merge', 'comment' => 'Merge comment', 'namespace' => NS_MAIN, 'title' => 'OldPage', - 'params' => array( + 'params' => [ '4::dest' => 'NewPage', '5::mergepoint' => '20140804160710', - ), - ), - array( + ], + ], + [ 'text' => 'User merged OldPage into NewPage (revisions up to 16:07, 4 August 2014)', - 'api' => array( + 'api' => [ 'dest_ns' => 0, 'dest_title' => 'NewPage', 'mergepoint' => '2014-08-04T16:07:10Z', - ), - ), - ), + ], + ], + ], // Legacy format - array( - array( + [ + [ 'type' => 'merge', 'action' => 'merge', 'comment' => 'merge comment', 'namespace' => NS_MAIN, 'title' => 'OldPage', - 'params' => array( + 'params' => [ 'NewPage', '20140804160710', - ), - ), - array( + ], + ], + [ 'legacy' => true, 'text' => 'User merged OldPage into NewPage (revisions up to 16:07, 4 August 2014)', - 'api' => array( + 'api' => [ 'dest_ns' => 0, 'dest_title' => 'NewPage', 'mergepoint' => '2014-08-04T16:07:10Z', - ), - ), - ), - ); + ], + ], + ], + ]; } /**