3 class PatrolLogFormatterTest
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 providePatrolLogDatabaseRows() {
17 'comment' => 'patrol comment',
18 'namespace' => NS_MAIN
,
27 'text' => 'User marked revision 2 of page Page patrolled',
36 // Current format - autopatrol
41 'comment' => 'patrol comment',
42 'namespace' => NS_MAIN
,
51 'text' => 'User automatically marked revision 2 of page Page patrolled',
65 'comment' => 'patrol comment',
66 'namespace' => NS_MAIN
,
76 'text' => 'User marked revision 2 of page Page patrolled',
85 // Legacy format - autopatrol
90 'comment' => 'patrol comment',
91 'namespace' => NS_MAIN
,
101 'text' => 'User automatically marked revision 2 of page Page patrolled',
113 * @dataProvider providePatrolLogDatabaseRows
115 public function testPatrolLogDatabaseRows( $row, $extra ) {
116 $this->doTestLogFormatter( $row, $extra );