3 class MergeLogFormatterTest
extends LogFormatterTestCase
{
6 * Provide different rows from the logging table to test
7 * for backward compatibility.
8 * Do not change the existing data, just add a new database row
10 public static function provideMergeLogDatabaseRows() {
17 'comment' => 'Merge comment',
18 'namespace' => NS_MAIN
,
21 '4::dest' => 'NewPage',
22 '5::mergepoint' => '20140804160710',
26 'text' => 'User merged OldPage into NewPage (revisions up to 16:07, 4 August 2014)',
29 'dest_title' => 'NewPage',
30 'mergepoint' => '2014-08-04T16:07:10Z',
40 'comment' => 'merge comment',
41 'namespace' => NS_MAIN
,
50 'text' => 'User merged OldPage into NewPage (revisions up to 16:07, 4 August 2014)',
53 'dest_title' => 'NewPage',
54 'mergepoint' => '2014-08-04T16:07:10Z',
62 * @dataProvider provideMergeLogDatabaseRows
64 public function testMergeLogDatabaseRows( $row, $extra ) {
65 $this->doTestLogFormatter( $row, $extra );