4 * @covers MergeLogFormatter
6 class MergeLogFormatterTest
extends LogFormatterTestCase
{
9 * Provide different rows from the logging table to test
10 * for backward compatibility.
11 * Do not change the existing data, just add a new database row
13 public static function provideMergeLogDatabaseRows() {
20 'comment' => 'Merge comment',
21 'namespace' => NS_MAIN
,
24 '4::dest' => 'NewPage',
25 '5::mergepoint' => '20140804160710',
29 'text' => 'User merged OldPage into NewPage (revisions up to 16:07, 4 August 2014)',
32 'dest_title' => 'NewPage',
33 'mergepoint' => '2014-08-04T16:07:10Z',
43 'comment' => 'merge comment',
44 'namespace' => NS_MAIN
,
53 'text' => 'User merged OldPage into NewPage (revisions up to 16:07, 4 August 2014)',
56 'dest_title' => 'NewPage',
57 'mergepoint' => '2014-08-04T16:07:10Z',
65 * @dataProvider provideMergeLogDatabaseRows
67 public function testMergeLogDatabaseRows( $row, $extra ) {
68 $this->doTestLogFormatter( $row, $extra );