4 * @covers \PatrolLogFormatter
6 class PatrolLogFormatterTest
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 providePatrolLogDatabaseRows() {
20 'comment' => 'patrol comment',
21 'namespace' => NS_MAIN
,
30 'text' => 'User marked revision 2 of page Page patrolled',
39 // Current format - autopatrol
44 'comment' => 'patrol comment',
45 'namespace' => NS_MAIN
,
54 'text' => 'User automatically marked revision 2 of page Page patrolled',
68 'comment' => 'patrol comment',
69 'namespace' => NS_MAIN
,
79 'text' => 'User marked revision 2 of page Page patrolled',
88 // Legacy format - autopatrol
93 'comment' => 'patrol comment',
94 'namespace' => NS_MAIN
,
104 'text' => 'User automatically marked revision 2 of page Page patrolled',
116 * @dataProvider providePatrolLogDatabaseRows
118 public function testPatrolLogDatabaseRows( $row, $extra ) {
119 $this->doTestLogFormatter( $row, $extra );