3 class ProtectLogFormatterTest
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 provideMoveProtLogDatabaseRows() {
16 'action' => 'move_prot',
17 'comment' => 'Move comment',
18 'namespace' => NS_MAIN
,
21 '4::oldtitle' => 'OldPage',
25 'text' => 'User moved protection settings from OldPage to NewPage',
28 'oldtitle_title' => 'OldPage',
37 'action' => 'move_prot',
38 'comment' => 'Move comment',
39 'namespace' => NS_MAIN
,
47 'text' => 'User moved protection settings from OldPage to NewPage',
50 'oldtitle_title' => 'OldPage',
58 * @dataProvider provideMoveProtLogDatabaseRows
60 public function testMoveProtLogDatabaseRows( $row, $extra ) {
61 $this->doTestLogFormatter( $row, $extra );